Computer Science, asked by Trianguz, 5 months ago

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 jai696
3

\huge{\mathtt{{\blue{\boxed{\tt{\pink{\orange{A}\purple{n}\blue{s}\red{w}\green{e}\pink{r᭄}}}}}}}}

  1. TypeError
  2. No Error

\huge\blue{\mid{\fbox{\tt{Explanation}}\mid}}

  1. Strings are immutable in python & cannot be modified.
  2. Tuple concatenation is a valid operation in python and thus throws no errors.

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Answered by Japji21
0

Answer:

Type Error

no error.

Explanation:

pls follow up and give thanks

Similar questions