Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. a = []
  2. >>>a=a+1 #it gives me expected concatenate error
  3. TypeError: can only concatenate list (not "int") to list
  4.  
  5.  
  6. >>>a+=1 #but this wasn't
  7. TypeError: 'int' object is not iterable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement