Find the errors in the code fragment
(i) name=”Rohil”
print(name)
name[2]=’r’
print(name)
(ii) t1=(3,)
t2=(4,5,6)
t3=t1+t2
print(t3)
Answers
Answered by
3
- TypeError
- No Error
- Strings are immutable in python & cannot be modified.
- Tuple concatenation is a valid operation in python and thus throws no errors.
Answered by
0
Answer:
Type Error
no error.
Explanation:
pls follow up and give thanks
Similar questions