- 1
25=Val for I in the range(0,Val) if I%2==0: print I+1 Else: print I-1
Rewrite the following code in python after removing all syntax error(s). Underline each correction done in the code
1 Resposta
0
Sarada Mahapatra , There are many errors in the syntax. Assign value to a variable should be: Val = 25, remove "the" from the loop, missing ":" after the loop body, indentation is wrong, missing parentheses from print statements, "else" should begin with lowercase letter. Look at the corrected code.
https://code.sololearn.com/c5whD4Ooj83U/?ref=app