127k views
0 votes
in Python. Write a program whose input is two integers. Output the first integer and subsequent increments of 10 as long as the value is less than or equal to the second integer. No whitespace/newline at the end.

User Ozzi
by
5.8k points

1 Answer

2 votes

Answer:

a, b = list(map(int, input().split()))

sequence = []

while a + 10 <= b:

sequence.append(a + 10)

a += 10

print(*sequence)

Step-by-step explanation:

User INElutTabile
by
5.0k points