It takes a great deal for me to come out and ask for help, but this tiny bit of code is bugging me immensely.
- Error Message: "Oops, try again. remove_duplicates([4, 5, 5, 4]) resulted in an error: argument of type 'NoneType' is not iterable"
def remove_duplicates(nums): cleannums= for n in nums: if n not in cleannums: cleannums = cleannums.append(n) return cleannums
Thanks in advance.