t514.py 308 B

12345678910111213141516171819202122232425262728
  1. try:
  2. print "a" * "b"
  3. except TypeError as e:
  4. print e
  5. try:
  6. print "a" * 3.4
  7. except TypeError as e:
  8. print e
  9. try:
  10. print 3.4 * "b"
  11. except TypeError as e:
  12. print e
  13. try:
  14. print "a" * [2]
  15. except TypeError as e:
  16. print e
  17. try:
  18. print [2] * "b"
  19. except TypeError as e:
  20. print e