0
Please Guide the steps
shiv=(11,5,7,2,2) shiv=str(shiv) print(shiv[2])
2 Antworten
+ 4
Please clarify what it is that you are trying to accomplish.
+ 4
#You are converting a tuple into a string. Then printing the third element which is the second 1 in 11.
#Try
shiv=(11,5,7,2,2)
print(shiv,type(shiv))
[print(j,': ',i) for j,i in enumerate(shiv)]
shiv=str(shiv)
print(shiv,type(shiv))
[print(j,': ',i) for j,i in enumerate(shiv)]
#and the code explains itself