How to output from the cycle only one (in this example 5th) number?
I got an error
& gt; Print (k ) Indexerror: String Index Out of Range
Answer 1, Authority 100%
for i in range (1,101): K = STR (I)
So, first the
1 and the
K Length of the length
1 . The string symbols are indexed from zero, which means
k  will be “1” and the use of positive indexes (since
k  , …) meaningless.
print (k )
k  ? This is the sixth character of the
k line. But this symbol does not exist – in the
k line only one symbol! here and mistake.
Answer 2, Authority 100%
Try to replace “print (k )” on “if i == 5: Print (k)”