Answer to Question #339708 in Python for Jean

Question #339708
  1. using the range function and parameters print a range multiple of 20 starting with 20 ending in 20 add the print of finally finished after the range

can you give me example code for Python?



1
Expert's answer
2022-05-12T08:18:40-0400
start = #here your start point
end = #here your end point(not inclusive)
interval = #here interval between numbers
print(list(range(start, end, interval)))

In your case:

print(list(range(20, 220, 20))

output: [20, 40, 60, 80, 100, 120, 140, 160, 180, 200]


p.s. I guess it misprint and your end point 200, if not just switch number


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