Print Integers (Solution)
After you finish your first challenge, let’s go back to the training field and do some exercises to train
for loops. Just like before, it’s a good idea to paste the exercise as a comment and format it so you can read everything.
for i in, and then you use the
range() function. And for now, let’s just put
10 there and see what happens by printing out the value of
i for each step of the
for loop, save the file, and run the module.
Become a Member to join the conversation.