0 like 0 dislike
ago in Examples, Exercises and Projects by (7k points)

Sample Input:

size of an array = 9
array elements = 2 3 4 5 6 1 2 3 4  


Sample Output:

2 3 4 5 6 1

1 Answer

0 like 0 dislike
ago by (7k points)
selected ago by
 
Best answer

a=int(input())

b=input()

b=b.split(",")

c=[]

for i in b:

    if i not in c:

        c.append(i)

for i in c:

     print(i,end=' ')

Register fast for winter training program at Goeduhub Technologies. We are providing winter training in AI-ML, IoT, Python, Hadoop and PLC-SCADA.

[[ CALL - 07976731765 ]]

...