Guest User

Untitled

a guest
Dec 9th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. >>> t = (1)
  2. >>> t
  3. 1
  4. >>> type(t) # t não recebe uma lista, e sim um inteiro
  5. <type 'int'>
  6.  
  7. # Veja a diferença
  8. >>> t = (1,)
  9. >>> t
  10. (1,)
  11. >>> type(t)
  12. <type 'tuple'>
Add Comment
Please, Sign In to add comment