Computer Science, asked by shivangiraj66, 5 months ago

Rewrite the following code in Python after removing all syntax error(s).

Underline each correction done in the code.

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)​

Answers

Answered by gurmeetsinghbeas8
0

Answer:

Sorry

Explanation:

I am in sixth class so I have not studied these

Answered by duragpalsingh
0

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

Similar questions