Q:

write python program to print only passed students with their marks, using contine statement

0

write python program to print only passed students with their marks, using contine statement

hint: you have to define a list for student names, and a list for student marks

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

using contine statement:

studnetNames=["adnan","mohammad","ahmed","sultan","john","omar"]
studentMarks=[90,45,66,70,59,60]
for i in range(0,6):
    if studentMarks[i]<60:
        continue
    print("student name: ",studnetNames[i],"------- student mark: ",studentMarks[i])

 

without using contine statement:

studnetNames=["adnan","mohammad","ahmed","sultan","john","omar"]
studentMarks=[90,45,66,70,59,60]
for i in range(0,6):
    if studentMarks[i]>=60:
        print("student name: ",studnetNames[i],"------- student mark: ",studentMarks[i])

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now