I wanna experiment on looping through a range of numbers that will be randomly inputted by the user. However, I don't want to let them see the loading percentage that is divisible by 4, so please exclude those for me when printing it out.
Thank you!
Instructions
Input
A line containing two integers separated by a space.
2·10
Output
Multiple lines containing a string and an integer.
Loading...2%
Loading...3%
Loading...5%
Loading...6%
Loading...7%
Loading...9%
Loading...10%
a = int(input())
b = int(input())
for i in range(a, b + 1):
if i % 4 == 0:
continue
print('Loading...{0}%'.format(i))
Comments
Leave a comment