Advertisement
Guest User

Untitled

a guest
Feb 26th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. Channel.groups.sort() # Channel.groups is a list of strings
  2.  
  3. for country in Channel.groups:
  4. print(country)
  5.  
  6. for country in Channel.groups.sort():
  7. print(country)
  8.  
  9. # This results in error: TypeError: 'NoneType' object is not iterable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement