Computer Science, asked by Gautham30, 9 months ago

. Rewrite the following code in python after removing all syntax error(s). Underline each correction done in the code.               (2)

250 = Number  

WHILE Number<=1000:

 if Number=>750:  

 print Number  

 Number=Number+100  

else  

 print Number*2  

 Number=Number+50

Answers

Answered by codec
31

Answer:

number = 250

while number <= 1000:

   if number >= 750:

       print(number)

       number += 100

   else:

       print(number*2)

       number += 50

Explanation:

theres not much to explain here basic syntax

Similar questions