write a program to check omr sheet

 

write a program to check omr sheet 








correct=str(input("Enter answer key by seperating equal spaces in evry option:")).split()

ans=str(input("Enter answer attempt by student:")).split()

Notcorrect=[]


marks=0

for i in range(0,len(correct),1):

    

    if ans[i]==correct[i]:

            

        marks+=1

    else:

        Notcorrect.append("Q.")

        Notcorrect.append(i+1)

        

print("You got",marks,"in subject.")

print("Your wrong answer are .",Notcorrect)


print("Answer key of your paper is:",correct)

No comments:

Powered by Blogger.