Created
October 28, 2018 23:04
-
-
Save GeorgeSeif/b84c5d4115328b83dcdcd9e121ef0cd1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # A for loop printing numbers from 1 to 10 | |
| for num in range(1, 11): | |
| print(num) | |
| # A while loop printing numbers from 1 to 10 | |
| num = 1 | |
| while num < 11: | |
| print(num) | |
| num = num + 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment