0

Please Guide the steps

shiv=(11,5,7,2,2) shiv=str(shiv) print(shiv[2])

7th Apr 2019, 4:52 AM
Navneet
Navneet - avatar
2 ответов
+ 4
Please clarify what it is that you are trying to accomplish.
7th Apr 2019, 5:05 AM
Louis
Louis - avatar
+ 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
7th Apr 2019, 5:12 AM
Louis
Louis - avatar