Dhruv H 11 A CS
Dhruv H 11 A CS
Dhruv H 11 A CS
COMPUTER SCIENCE
TEST SERIES AND IT’S DATA MANAGEMENT
Submitted By
Name: Dhruv Hingu Roll No. 11
TABLE OF CONTENTS
Certificate
Acknowledgement
Files generated
Bibliography
CERTIFICATE
This is to certify that
I would like to thank Ekta Shroff for her able guidance, valuable suggestions
and continuous encouragement during the time of project. I wish to put my
deepest sense of appreciation and thanks to her.
PROGRAM FILE
testseries.py
EXECUTION FILE
testseries.exe
Code
#test series and data management leader boards
gamerid=100
player={}
Data={}
f=[]
def mainmenu(gamerid):
print("\t\t\t___________________________")
print("\t\t\t|SELECT YOUR CHOICE |")
print("\t\t\t===========================")
print("\t\t\t|1. TAKE TEST |")
print("\t\t\t|2. LEADERBOARDS(TEST) |")
print("\t\t\t|3. YOUR DETAILS |")
print("\t\t\t|4. UPDATE YOUR DETAILS |")
print("\t\t\t|5. NEXT PLAYER |")
print("\t\t\t|6. EXIT.... |")
print("\t\t\t----------------------------")
choice=int(input("Enter your Choice"))
if choice==1:
paper(gamerid)
elif choice==2:
leaderboards(gamerid)
elif choice==3:
pdetail(gamerid)
elif choice==4:
udetail(gamerid)
elif choice==5:
choice2=input("Are you new y/n:")
if choice2=="y":
enterdata(player)
elif choice2=="n":
ID=int(input("enter your gamer id:"))
if ID in Data.keys():
f=Data[ID]
print(f)
gamerid=f[0]
mainmenu(gamerid)
else:
print("ERROR!")
else:
print("enter a valid number")
else:
import sys
sys.exit()
def enterdata(player):
global gamerid
gamerid+=1
name=input("Enter your name: ")
try:
age=int(input("Enter your age"))
except:
print("Enter A Numeric Value")
age=int(input("Enter your age"))
city=input("Enter your city: ")
physcore=[]
chescore=[]
mthscore=[]
tot=0
pcount=0
ccount=0
mcount=0
player[gamerid]=[gamerid,name,age,city,physcore,chescore,mthscore,tot,pcount,ccount,mcount]
print("Your LearnerID is:",gamerid,"\nThis is also very important so REMEMBER..")
Data[gamerid]=player[gamerid]
mainmenu(gamerid)
def pdetail(gamerid):
print("------------------------------------------------------------------------")
print("|LEARNERID |NAME |AGE |CITY |PHYSICS SCORE|CHEMISTRY SCORE|MATHS SCORE|")
print("|_______________________________________________________________________|")
p=0
while p<7:
print("|",player[gamerid][p],end=" |")
p+=1
print("\n-----------------------------------------------------------------------")
mainmenu(gamerid)
def udetail(gamerid):
gamerid=int(input("Enter Your Learner ID:"))
if gamerid in Data.keys():
while True:
print("\t\t\t|----UPDATION-----|")
print("\t\t\t|1. To update Name|")
print("\t\t\t|2. To update City|")
print("\t\t\t|3. To update Age |")
print("\t\t\t|4. To exit |")
print("\t\t\t------------------")
choice=int(input("Enter your choice: "))
val=player[gamerid]
if choice==1:
name=int(input("Update your Name:"))
val[1]=name
player[gamerid]=val
elif choice==2:
city=input("Update Your City: ")
val[3]=city
player[gamerid]=val
elif choice==3:
age=int(input("Update Your Age"))
val[2]=age
player[gamerid]=val
else:
print("Select The Choice Correctly")
mainmenu(gamerid)
else:
print("No such student record exists")
mainmenu(gamerid)
def paper(gamerid):
print("\t L EEEEE AA RRRR NN N IIIII NN N GGGGG ")
print("\t L E A A R RR N N N I N N N GG ")
print("\t L EEEE AAAAAA RRRR N N N I N N N GG GGG ")
print("\t L E A A R R N N N I N N N GG GG G ")
print("\t LLLLLL EEEEE AA AA R R N NN IIIII N NN GGGG ")
print("\t _______________________________________________________________")
print("\t ww ww OOOOO RRRR LL DDDDD")
print("\t ww w ww OO OO R RR LL DD DD")
print("\t ww www ww OO OO RRRR LL DD DD")
print("\t www www OO OO R R LL DD DD")
print("\t w w OOOOO R R LLLLL DDDDD")
print("\t ______________________________________")
print("\t\t\t___________________________")
print("\t\t\t|SELECT YOUR GAME |")
print("\t\t\t===========================")
print("\t\t\t|1. QUESTIONNAIRE ON JEE |")
print("\t\t\t|2. EXIT.... |")
print("\t\t\t--------------------------")
gchoice=int(input("Enter Your Choice"))
if gchoice==1:
print("Here ther would be some question for JEE practise from \nPhysics,Chemistry and Maths")
print("It is mcq based test with one option correct")
print("correct answer=+4\nIncorrect answer=-1")
print("press any other key to for not answering any option (marks awarded=0")
import random
paper=random.randint(1,2)
if paper==1:
paperA(gamerid)
else:
paperB(gamerid)
elif gchoice==2:
mainmenu(gamerid)
else:
("Select the choice correctly!")
def paperA(gamerid):
print("\t\t____________________________|")
print("\t\t|SELECT YOUR SUBJECT |")
print("\t\t============================")
print("\t\t|1. PHYSICS |")
print("\t\t|2. CHEMISTRY |")
print("\t\t|3. MATHS |")
print("\t\t|4. GO BACK |")
print("\t\t----------------------------|")
code=int(input("Enter your subject code"))
if code==1:
print("\t\t\tPHYSICS")
ps=0
for que in range(1,6):
if que==1:
print("Ques",que,"The area of sruare is 5.29cm^2.The areaof 7 such squares\ntaking into account the
significant fiqure is")
print("\t(1)37cm^2\t(2)37.0cm^2")
print("\t(3)37.03cm^2\t(4)37.030cm^2")
pans1=int(input("Enter your choice"))
if pans1==3:
#print("Your answer is right(+4)")
ps=ps+4
elif pans1==5:
ps=ps+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
ps=ps-1
if que==2:
print("Ques",que,"A particle which is experience a force,given by")
print("F=3i-12j,undergoes a displacement d=4i.If the")
print("particle had the Kinetic energy of 3J at the begining of the")
print("displacement,what is the kinetic energy at the end of diaplacement?")
print("\t(1)15J\t(2)10J")
print("\t(3)12J\t(4)9J")
pans2=int(input("Enter your choice"))
if pans2==1:
#print("Your answer is right(+4)")
ps=ps+4
elif pans2==5:
ps=ps+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
ps=ps-1
if que==3:
print("Ques",que,"A boby of mass 2 kg makes an elastic collision with the second")
print("body at restand continues to move in the original direction")
print("but with on-foth of the original mass of other object?")
print("\t(1)1.8kg\t(2)1.2kg")
print("\t(3)1.5kg\t(4)1.0kg")
pans3=int(input("Enter your choice"))
if pans3==2:
#print("Your answer is right(+4)")
ps=ps+4
elif pans3==5:
ps=ps+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
ps=ps-1
if que==4:
print("Ques",que,"If M is the mass of water that rises in a capillary tube")
print("of radius r, then mass of water which will rise in a capillary tube")
print("of radius 2r")
print("\t(1)4M\t(2)M")
print("\t(3)2M\t(4)M/2")
pans4=int(input("Enter your choice"))
if pans4==3:
#print("Your answer is right(+4)")
ps=ps+4
elif pans4==5:
ps=ps+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
ps=ps-1
if que==5:
print("Ques",que,"If the angular mommentum of a planet of mass m, moving")
print("around the sun in a circular orbit is L, about the center of the Sun,")
print("it's areal velocity is:")
print("\t(1)4L/m\t(2)L/m")
print("\t(3)L/2m\t(4)2L/m")
pans5=int(input("Enter your choice"))
if pans5==3:
#print("Your answer is right(+4)")
ps=ps+4
elif pans5==5:
ps=ps+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
ps=ps-1
player[gamerid][4].append(ps)
player[gamerid][8]+=1
print("Your Total score of physics =",ps)
yo=int(input("To Do detailed analysis,press:1 or else press:2 "))
if yo==1:
print("\tCorrect Answer1=(3)37.03cm^2 Your answer:",pans1)
print("\tCorrect Answer2=(1)15J Your answer:",pans2)
print("\tCorrect Answer3=(2)1.2kg Your answer:",pans3)
print("\tCorrect Answer4=(3)2M Your answer:",pans4)
print("\tCorrect Answer5=(3)L/2m Your answer:",pans5)
paperA(gamerid)
else:
paperA(gamerid)
if code==2:
print("\t\t\tCHEMISTRY")
cs=0
for que in range(1,6):
if que==1:
print("Ques",que,"Haemoglobin and golsol are example of:")
print("\t(1)negative charged sols")
print("\t(2)positively charged sols")
print("\t(3)negatively and positively charged sols,respectively")
print("\t(4)positively and negatively charged sols,respectively")
cans1=int(input("Enter your choice"))
if cans1==4:
#print("Your answer is right(+4)")
cs=cs+4
elif cans1==5:
cs=cs+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
cs=cs-1
if que==2:
print("Ques",que,"The element that show greater ability to form pie-pie")
print("multiple bond is:")
print("\t(1)Si\t(2)Ge")
print("\t(3)Sn\t(4)Pb")
cans2=int(input("Enter your choice"))
if cans2==4:
#print("Your answer is right(+4)")
cs=cs+4
elif cans2==5:
cs=cs+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
cs=cs-1
if que==3:
print("Ques",que,"The process with negative entropy change is")
print("\t(1)Dissolution of iodine in water")
print("\t(2)Synthesis of ammonia from N2 and H2")
print("\t(3)dissolution of CaSO4 to CaO and SO3")
print("\t(4)Sublimation of dry ice")
cans3=int(input("Enter your choice"))
if cans3==2:
#print("Your answer is right(+4)")
cs=cs+4
elif cans3==5:
cs=cs+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
cs=cs-1
if que==4:
print("Ques",que,"The chloride that can't get hydrolysed is")
print("\t(1)SiCl4\t(2)SnCl4")
print("\t(3)PbCl4\t(4)CCl4")
cans4=int(input("Enter your choice"))
if cans4==4:
#print("Your answer is right(+4)")
cs=cs+4
elif cans4==5:
cs=cs+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
cs=cs-1
if que==5:
print("Ques",que,"The Lanthanoide ion That would show color is:")
print("\t(1)Sm3+\t(2)La3+")
print("\t(3)Lu3+\t(4)Gd3+")
cans5=int(input("Enter your choice"))
if cans5==1:
#print("Your answer is right(+4)")
cs=cs+4
elif cans5==5:
cs=cs+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
cs=cs-1
player[gamerid][5].append(cs)
player[gamerid][9]+=1
print("Your Total score of chemistry =",cs)
yo=int(input("To Do detailed analysis,press:1 or else press 2:"))
if yo==1:
print("\tCorrect Answer1=(4)+ & - resp.Your answer:",cans1)
print("\tCorrect Answer2=(4)Pb Your answer:",cans2)
print("\tCorrect Answer3=(2)ammonia proYour answer:",cans3)
print("\tCorrect Answer4=(4)CCl4 Your answer:",cans4)
print("\tCorrect Answer5=(1)Sm3+ Your answer:",cans5)
paperA(gamerid)
else:
paperA(gamerid)
if code==3:
print("\t\t\tMATHS")
ms=0
for que in range(1,6):
if que==1:
print("Ques",que,"the sum of the series")
print("1+2*3+3*5+4*7.... upto 11th term is:")
print("\t(1)915\t(2)945")
print("\t(3)946\t(4)916")
mans1=int(input("Enter your choice"))
if mans1==3:
#print("Your answer is right(+4)")
ms=ms+4
elif mans1==5:
ms=ms+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
ms=ms-1
if que==2:
print("Ques",que,"The number of 6 digit number that can be formed using ")
print("the digits0,1,2,5,7&9 which are divisible by 11 and digit not repeated")
print("\t(1)36\t(2)72")
print("\t(3)48\t(4)60")
mans2=int(input("Enter your choice"))
if mans2==4:
#print("Your answer is right(+4)")
ms=ms+4
elif mans2==5:
ms=ms+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
ms=ms-1
if que==3:
print("Ques",que,"if a,b,and care three distinct real nummber in G.P and")
print("a+b+c=xb then can't be:")
print("\t(1)4 \t(2)-3")
print("\t(3)-2\t(4)2")
mans3=int(input("Enter your choice"))
if mans3==4:
#print("Your answer is right(+4)")
ms=ms+4
elif mans3==5:
ms=ms+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
ms=ms-1
if que==4:
print("Ques",que,"if the staight line 2x-3y+17=0 is perrpendicular")
print("line passing through the points(7,17) and (15,B),then B is:")
print("\t(1)-5 \t(2)-35/3")
print("\t(3)35/3\t(4)5")
mans4=int(input("Enter your choice"))
if mans4==4:
#print("Your answer is right(+4)")
ms=ms+4
elif mans4==5:
ms=ms+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
ms=ms-1
if que==5:
print("Ques",que,"A circle touches the x axis at(3,0)and making an intercept")
print("of lenght 8 on the y axis passes through the point")
print("\t(1)(2,3)\t(2)(3,10)")
print("\t(3)(1,5)\t(4)(3,5)")
mans5=int(input("Enter your choice"))
if mans5==2:
#print("Your answer is right(+4)")
ms=ms+4
elif mans5==5:
ms=ms+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
ms=ms-1
player[gamerid][6].append(ms)
player[gamerid][10]+=1
print("Your Total score of Maths =",ms)
yo=int(input("To Do detailed analysis,press:1 or else press:2"))
if yo==1:
print("\tCorrect Answer1=(3)946 Your answer:",mans1)
print("\tCorrect Answer2=(4)60 Your answer:",mans2)
print("\tCorrect Answer3=(4)2 Your answer:",mans3)
print("\tCorrect Answer4=(4)5 Your answer:",mans4)
print("\tCorrect Answer5=(2)(3,10) Your answer:",mans5)
paperA(gamerid)
else:
paperA(gamerid)
if code==4:
paper(gamerid)
else:
print("Select A Valid Code")
def paperB(gamerid):
print("\t\t____________________________|")
print("\t\t|SELECT YOUR SUBJECT |")
print("\t\t============================")
print("\t\t|1. PHYSICS |")
print("\t\t|2. CHEMISTRY |")
print("\t\t|3. MATHS |")
print("\t\t|4. GO BACK |")
print("\t\t----------------------------|")
code=int(input("Enter your subject code"))
if code==1:
print("\t\t\tPHYSICS")
ps=0
for que in range(1,6):
if que==1:
print("Ques",que,"Two forces P and Q of magnitude 2F and 3F, respectively")
print("are at an angle@ with each other. If the force Q is doubled,")
print("then their resultant also gets doubled.Then, the angle is:")
print("\t(1)30*\t(2)60*")
print("\t(3)90*\t(4)120*")
print("here * represent degree")
pans1=int(input("Enter your choice"))
if pans1==4:
#print("Your answer is right(+4)")
ps=ps+4
elif pans1==5:
ps=ps+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
ps=ps-1
if que==2:
print("Ques",que,"Moment of inertia of a body bout a given axis is1.5kgm^2")
print("initially the body is at rest. In order to produce a rotational")
print("kinetic energy of 1200J, the angular acceleration of 20rad/s^2")
print("must be applied about the axis for the duration of:")
print("\t(1)2s \t(2)5s")
print("\t(3)2.5s\t(4)3s")
pans2=int(input("Enter your choice"))
if pans2==1:
#print("Your answer is right(+4)")
ps=ps+4
elif pans2==5:
ps=ps+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
ps=ps-1
if que==3:
print("Ques",que,"The elastic limit of brass is 379MPa.What should be")
print("the Minimum diameter of the brass if it is to support a 400N")
print("load without exceeding the elastic limit.")
print("\t(1)1.16mm\t(2)0.90mm")
print("\t(3)1.36mm\t(4)1.00mm")
pans3=int(input("Enter your choice"))
if pans3==1:
#print("Your answer is right(+4)")
ps=ps+4
elif pans3==5:
ps=ps+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
ps=ps-1
if que==4:
print("Ques",que,"The gas mixture consist of 3 moles of oxygen and 5 moles")
print("of argon at temperature T.Considering only translational and ")
print("rotational modes, the total internal energy of the system is")
print("\t(1)12RT\t(2)20RT")
print("\t(3)15RT\t(4)4RT")
pans4=int(input("Enter your choice"))
if pans4==3:
#print("Your answer is right(+4)")
ps=ps+4
elif pans4==5:
ps=ps+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
ps=ps-1
if que==5:
print("Ques",que,"A solid sphere of mass M and radius a is surronded by a")
print("uniform concentric spherical shell of thickness 2a and mass")
print("2M. The gravitational field at distance 3a from center will be:")
print("\t(1)2GM/9a^2\t(2)GM/3a^2")
print("\t(3)GM/9a^2 \t(4)2GM/3a^2")
pans5=int(input("Enter your choice"))
if pans5==1:
#print("Your answer is right(+4)")
ps=ps+4
elif pans5==5:
ps=ps+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
ps=ps-1
player[gamerid][4].append(ps)
player[gamerid][8]+=1
print("Your Total score of physics =",ps)
yo=int(input("To Do detailed analysis,press:1 or else press:2"))
if yo==1:
print("\tCorrect Answer1=(4)120* Your answer:",pans1)
print("\tCorrect Answer2=(1)2s Your answer:",pans2)
print("\tCorrect Answer3=(1)1.16mm Your answer:",pans3)
print("\tCorrect Answer4=(3)15RT Your answer:",pans4)
print("\tCorrect Answer5=(2)GM/3a^2 Your answer:",pans5)
paperB(gamerid)
else:
paperB(gamerid)
if code==2:
print("\t\t\tCHEMISTRY")
cs=0
for que in range(1,6):
if que==1:
print("Ques",que,"The percentage composition of carbon by moles in methane is")
print("\t(1)80%\t(2)25%")
print("\t(3)75%\t(4)20%")
cans1=int(input("Enter your choice"))
if cans1==4:
#print("Your answer is right(+4)")
cs=cs+4
elif cans1==5:
cs=cs+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
cs=cs-1
if que==2:
print("Ques",que,"The ground state Energy of hydrogen atom is -13.6eV")
print("energy of the second exited state of He+ ion in eV:")
print("\t(1)-6.04\t(2)-27.2")
print("\t(3)-54.4\t(4)-3.4")
cans2=int(input("Enter your choice"))
if cans2==1:
#print("Your answer is right(+4)")
cs=cs+4
elif cans2==5:
cs=cs+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
cs=cs-1
if que==3:
print("Ques",que,"Among the following the energy of 2s orbital is lowest in")
print("\t(1)K \t(2)Na")
print("\t(3)Li\t(4)H")
cans3=int(input("Enter your choice"))
if cans3==1:
#print("Your answer is right(+4)")
cs=cs+4
elif cans3==5:
cs=cs+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
cs=cs-1
if que==4:
print("Ques",que,"An ideal gas expand from 1L to 10L")
print("against a const external pressure of 1 bar.the workdone is")
print("\t(1)-9.0\t(2)+10.0")
print("\t(3)-0.9\t(4)-2.0")
cans4=int(input("Enter your choice"))
if cans4==3:
#print("Your answer is right(+4)")
cs=cs+4
elif cans4==5:
cs=cs+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
cs=cs-1
if que==5:
print("Ques",que,"The one that is extensively used in piezoelectric cell is")
print("\t(1)Quarts\t(2)Amorphous silica")
print("\t(3)Mica \t(4)Tridymite")
cans5=int(input("Enter your choice"))
if cans5==1:
#print("Your answer is right(+4)")
cs=cs+4
elif cans5==5:
cs=cs+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
cs=cs-1
player[gamerid][5].append(cs)
player[gamerid][9]+=1
print("Your Total score of chemistry =",cs)
yo=int(input("To Do detailed analysis,press:1 or else press:2"))
if yo==1:
print("\tCorrect Answer1=(4)20% Your answer:",cans1)
print("\tCorrect Answer2=(1)-6.04 Your answer:",cans2)
print("\tCorrect Answer3=(1)K Your answer:",cans3)
print("\tCorrect Answer4=(3)-0.9 Your answer:",cans4)
print("\tCorrect Answer5=(1)Quarts Your answer:",cans5)
paperB(gamerid)
else:
paperB(gamerid)
if code==3:
print("\t\t\tMATHS")
ms=0
for que in range(1,6):
if que==1:
print("Ques",que,"The product of 3 consecutive term in GP is 512")
print("If 4 is added to each of the first and second term of these terms")
print("the 3 term now form an AP.Then the sum of the original")
print("3 term is ")
print("\t(1)36 \t(2)24")
print("\t(3)32 \t(4)28")
mans1=int(input("Enter your choice"))
if mans1==4:
#print("Your answer is right(+4)")
ms=ms+4
elif mans1==5:
ms=ms+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
ms=ms-1
if que==2:
print("Ques",que,"The sum of all two digit number when divided by")
print("yield 2or 5 as remaminder id ")
print("\t(1)1365\t(2)1256")
print("\t(3)1465\t(4)1356")
mans2=int(input("Enter your choice"))
if mans2==4:
#print("Your answer is right(+4)")
ms=ms+4
elif mans2==5:
ms=ms+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
ms=ms-1
if que==3:
print("Ques",que,"Suppose that 20 pilllars of the same height have been")
print("erected along the boundary of circular stadium.if the top ")
print("of each pillar has been connected by beams with the top of")
print("all non-adjacent pillar,then the total number of beams is:")
print("\t(1)190 \t(2)180")
print("\t(3)210 \t(4)170")
mans3=int(input("Enter your choice"))
if mans3==4:
#print("Your answer is right(+4)")
ms=ms+4
elif mans3==5:
ms=ms+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
ms=ms-1
if que==4:
print("Ques",que,"Let A and B be two roots of the equation x^2+2x+2=0")
print("Then A^15+B^15 is equal to")
print("\t(1)512 \t(2)-512")
print("\t(3)-256\t(4)256")
mans4=int(input("Enter your choice"))
if mans4==3:
#print("Your answer is right(+4)")
ms=ms+4
elif mans4==5:
ms=ms+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
ms=ms-1
if que==5:
print("Ques",que,"The minimum number times one has to toss a fair coin")
print("so that the probability of observing at least one head is at")
print("least90% is")
print("\t(1)3\t(2)2")
print("\t(3)5\t(4)4")
mans5=int(input("Enter your choice"))
if mans5==4:
#print("Your answer is right(+4)")
ms=ms+4
elif mans5==5:
ms=ms+0#print("You didn't mark any answer(0)")
else:
#print("Your answer is wrong!!(-1)")
ms=ms-1
player[gamerid][6].append(ms)
player[gamerid][10]+=1
print("Your Total score of Maths =",ms)
yo=int(input("To Do detailed analysis,press:1 or else press:2"))
if yo==1:
print("\tCorrect Answer1=(4)28 Your answer:",mans1)
print("\tCorrect Answer2=(4)1356 Your answer:",mans2)
print("\tCorrect Answer3=(4)170 Your answer:",mans3)
print("\tCorrect Answer4=(3)-256 Your answer:",mans4)
print("\tCorrect Answer5=(4)4 Your answer:",mans5)
paperB(gamerid)
else:
paperB(gamerid)
if code==4:
paper(gamerid)
else:
print("Select A Valid Code")
def leaderboards(gamerid):
ltill=list(Data.keys())
till=max(ltill)
mylist=[]
sigmascore={}
for i in range(101,till+1):
sigmascore[i]=0
for j in range(0,player[i][8]):
sigmascore[i]=sigmascore[i]+player[i][4][j]
for k in range(0,player[i][9]):
sigmascore[i]=sigmascore[i]+player[i][5][k]
for m in range(0,player[i][10]):
sigmascore[i]=sigmascore[i]+player[i][6][m]
if player[i][8]+player[i][9]+player[i][10]==0:
if player[i][0]==player[gamerid][0]:
x=("\t|",player[i][0],"*","|",player[i][1],"|",player[i][4],"|",player[i][5],"|",player[i][6],"|",0,"|")
elif player[i][0]!=player[gamerid][0]:
y=("\t|",player[i][0]," |",player[i][1],"|",player[i][4],"|",player[i][5],"|",player[i][6],"|",0,"|")
else:
if player[i][0]==player[gamerid][0]:
z=("\t|",player[i][0],"*","|",player[i][1],"|",player[i][4],"|",player[i][5],"|",player[i][6],"|",sigmascore[i]/(player[i][8]+
player[i][9]+player[i][10]),"|")
mylist.append(sigmascore[i]/(player[i][8]+player[i][9]+player[i][10]))
elif player[i][0]!=player[gamerid][0]:
a=("\t|",player[i][0],"|",player[i][1],"|",player[i][4],"|",player[i][5],"|",player[i][6],"|",sigmascore[i]/(player[i][8]+play
er[i][9]+player[i][10]),"|")
mylist.append(sigmascore[i]/(player[i][8]+player[i][9]+player[i][10]))
mylist.sort(reverse=True)
print(mylist)
print("\t\t\t@!!!LEADERBOARD!!!@")
print("\t\t\t-------------------")
print("\t ----------------------------------------------------------------------------------------------------- ")
print("\t","Rank","LEARNID","NAME","AGE","CITY","PHYSICS","CHEMISTRY","MATHS","TOTAL
SCORE",sep=" |",end=" |")
print("\n\t
|_____________________________________________________________________________________________
________")
for a in mylist:
for c in range(101,till+1):
if sigmascore[c]/(player[c][8]+player[c][9]+player[c][10])==a:
print("\t
",mylist.index(sigmascore[c]/(player[c][8]+player[c][9]+player[c][10]))+1,player[c][0],player[c][1],player[c][2],pla
yer[c][3],player[c][4],player[c][5],player[c][6],a,sep=" |")
print("\t |------------------------------------------------------------------------------------------------------|")
try:
your=int(input("Enter your Learner ID to get your rank"))
ranker=sigmascore[your]/(player[your][8]+player[your][9]+player[your][10])
print("Your Rank is:",(mylist.index(ranker))+1)
mainmenu(gamerid)
except:
print("Enter A Exsiting Learner ID")
your=int(input("Enter your Learner ID to get your rank"))
try:
ranker=sigmascore[your]/(player[your][8]+player[your][9]+player[your][10])
print("Your Rank is:",(mylist.index(ranker))+1)
mainmenu(gamerid)
except:
print("You Have Not Attempted any test")
mainmenu(gamerid)
Test Selection
Test with solution
Next Player
Update data
Leader Boards
BIBLIOGRAPHY