Created
November 28, 2019 08:15
-
-
Save ShadowofZeus/07a58f5adf90ee76ed1aece6af22b3f3 to your computer and use it in GitHub Desktop.
Exercise-4
This file contains 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
""" | |
Lessons Learnt | |
Range command | |
Conditionals and Lists | |
""" | |
extent=int(input("Kindly enter a smaple number: ")) | |
listbaba=range(1,extent+1) # range command is Powerfull!! | |
for item in listbaba: | |
if (extent%item==0): | |
print(item) | |
else: | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment