+ 3

How to enumerate the output? Thanks for the help!

The output expected to be something like this : 1. T1_88 = "0010000011010101100010100110101001110010101000111010000011000111010101100111100011111111" 2. T1_66 = "001000111010000000001110001100110001111101110111100101000110111011" https://code.sololearn.com/ck8uTmLY000L/?ref=app

17th Mar 2022, 5:41 PM
PASHA from Russia 🇷🇺
PASHA  from Russia  🇷🇺 - avatar
6 odpowiedzi
+ 3
Incrementing just means adding a number (called "step") to a variable in each iteration of a loop.
17th Mar 2022, 5:57 PM
Simon Sauter
Simon Sauter - avatar
+ 2
ravilnicki yes.
17th Mar 2022, 5:59 PM
PASHA from Russia 🇷🇺
PASHA  from Russia  🇷🇺 - avatar
+ 1
You could use a counter variable starting at 1 and increment it after every execution of the print statement. Then you can just add this in your print statement: str(counter) + ". " +
17th Mar 2022, 5:46 PM
Simon Sauter
Simon Sauter - avatar
+ 1
Simon Sauter, can you edit my code given above? I can hardly cope with increments.
17th Mar 2022, 5:50 PM
PASHA from Russia 🇷🇺
PASHA  from Russia  🇷🇺 - avatar
17th Mar 2022, 5:55 PM
Simon Sauter
Simon Sauter - avatar