how can I remove values of nan from a list without libraries? code example Example: remove nan from list python cleanedList = [x for x in countries if str(x) != 'nan']