Skip to content

Instantly share code, notes, and snippets.

@ShadowofZeus
Created November 28, 2019 08:15
Show Gist options
  • Save ShadowofZeus/07a58f5adf90ee76ed1aece6af22b3f3 to your computer and use it in GitHub Desktop.
Save ShadowofZeus/07a58f5adf90ee76ed1aece6af22b3f3 to your computer and use it in GitHub Desktop.
Exercise-4
"""
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