Answer to Question #262043 in Python for Isabel Cortez

Question #262043

4. Loading…

by CodeChum Admin



Instructions:

  1. Input two integers in one line. The first inputted integer will be the starting point, and the second one shall serve as the ending point.
  2. Create two variables and assign them to an input() function. The first variable will accept the starting integer and the second one will accept the ending integer of the range.
  3. Use the power of loops to loop through the starting point until the ending point (inclusive), and print out each number within the range with the corresponding format shown on the sample output.
  4. However, skip the printing of statement if the integer is divisible by 4.
  5. Tip: Utilize the continue keyword to complete the process.



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%
1
Expert's answer
2021-11-07T10:13:59-0500
a,b = [int(i) for i in input().split()]
for i in range(a, b + 1):
    if i % 4 != 0:
        print('Loading...', i, '%', sep='')

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS