Remove_duplicates


#1

How do i say python to do nothing`

` if char == char in new_list:
# problem
else:
new_list.append(char)


#2

to check if something is in list you can simply use:

char in new_list

python handles everything for you, no need for char ==

well, we have pass, which means nothing. But we can also use not to check something is not in list


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.