t414.py 210 B

1234567891011121314151617
  1. #string
  2. print len("")
  3. print len("hello")
  4. print len(" "*10)
  5. #tuple
  6. print len(())
  7. print len((1,2,3,4))
  8. #list
  9. print len([])
  10. print len([1,2,3,4])
  11. print len([0]*10)
  12. #dictionary
  13. print len({})
  14. print len({1:2,3:4})