Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.16 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. All possible types of a variable in python
  2. n = int(raw_input())
  3.  
  4. if n<50:
  5.         a = 5
  6. elif n<100:
  7.          a = 6.8
  8. else:
  9.          a = 'abc'
  10.  
  11. print type(a)