+ 9
How the output is 1 ?
a = (11,5,7,2,2) a = str(a) print(a[2]) Please Explain, How the output is 1?
3 RĂ©ponses
+ 17
Well, a is "(11, 5, 7, 2, 2)". A character with index 2 is "1". This is how :)
+ 12
so, a[0] is '(' , right ?
+ 9
Exactly
a = (11,5,7,2,2) a = str(a) print(a[2]) Please Explain, How the output is 1?