fork download
  1. def tcomp(value):
  2. if type(value) == type(100):
  3. return 100
  4. elif type(value) == type(""):
  5. return len(value)
  6. else:
  7. return 20
  8.  
  9. a = '100.0'
  10. b = 100.0
  11. c = (100, 200)
  12.  
  13. print(tcomp(a)+tcomp(b)+tcomp(c))
  14.  
Success #stdin #stdout 0.01s 7020KB
stdin
Standard input is empty
stdout
45