What error is risen by this code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What error is risen by this code?

a=(1,"spam",5,6) try: a[1]=1 except ValueError: print("1"*6) except TypeError: print("1"*4)

18th Aug 2017, 2:53 PM
brunda vishishta i
brunda vishishta i - avatar
2 Answers
+ 8
# Indentation error! a=(1,"spam",5,6) try: a[1]=1 except ValueError: print("1"*6) except TypeError: print("1"*4)
18th Aug 2017, 3:06 PM
Dev
Dev - avatar
+ 2
Python is so cute. You know, one of those things you say "Awwww" to but you don't actually ever bring it home with you because you already have a real dog. :D
18th Aug 2017, 3:09 PM
AgentSmith