1.

17.Rewrite the following code in Python after removing all syntax error(s). Underline eachcorrection done in the code. Value=30for VAL in range(0,Value) If val%4==0:print (VAL*4) Elseif val%5==0:print (VAL+3) else print(VAL+10)​

Answer»

Given snippet:

Value=30

for VAL in RANGE(0,Value)

If val%4==0:

print (VAL*4)

Elseif val%5==0:

print (VAL+3)

else

print(VAL+10)

Correct snippet:

Value=30

for VAL in range(0,Value) :  

if val%4==0:  

print (VAL*4)

elif val%5==0:  

print (VAL+3)

else:  

print(VAL+10)

LearnMore on Brainly.in:

A binary file “STUDENT.DAT” has structure (admission_number, Name,

PERCENTAGE). WRITE a function countrec() in PYTHON that would read contents

of the file “STUDENT.DAT” and display the details of those students whose

percentage is above 75. Also display NUMBER of students scoring above 75%.

brainly.in/question/25989972



Discussion

No Comment Found