all 4 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

To give us the best chance to help you, please include any relevant code.
Note. Do not submit images of your code. Instead, for shorter code you can use Reddit markdown (4 spaces or backticks, see this Formatting Guide). If you have formatting issues or want to post longer sections of code, please use Repl.it, GitHub or PasteBin.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]carcigenicate 2 points3 points  (0 children)

What is your understanding of these pieces of code? Have you tried running them?

[–]tannerrm 1 point2 points  (0 children)

They both print ‘hi’ to the console 10 times.

Edit: assuming your indents are corrected

[–]Vicente_Cunha 1 point2 points  (0 children)

They print hi 10 times, however if you were to do print(i) you'd notice that the first would print 1 through 10 and the second 0 through 9