0% found this document useful (0 votes)
3 views6 pages

Without SQL

This document contains a Python program that implements a quiz game with three difficulty levels: Easy, Medium, and Hard. Players answer math questions, and their scores are calculated based on correct answers, with the option to retry levels or proceed to the next one. The program also tracks the time taken for each level and provides feedback on the player's performance.

Uploaded by

richrayzone
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views6 pages

Without SQL

This document contains a Python program that implements a quiz game with three difficulty levels: Easy, Medium, and Hard. Players answer math questions, and their scores are calculated based on correct answers, with the option to retry levels or proceed to the next one. The program also tracks the time taken for each level and provides feedback on the player's performance.

Uploaded by

richrayzone
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

#Without sql,because,bitch,i spent my energy

import time as t

def easy():

score=0

print("Initiating..")

print("Program Starting Easy level")

print("Hello",name,"\n")

print("(〃 ̄︶ ̄)人( ̄︶ ̄〃)~~Lets go!")

loop=0

while loop!=2:

if loop==0:

stt= [Link]()

print("Level 01")

print("🫧First Question\n 2+2=\n ANS:\n")

ans=int(input())

if ans==4:

print("👏 That was Too Easy")

score+=1

else:

print("[Link] Give Your Device back to Your Owner.")

loop+=1

elif loop==1:

print("Level 02")

print("The Previous one was childs play.")

print("Lets go a bit 🤏 harder")

print("Square root of 144 is\nANS:")

ent=[Link]()

elapsedtime=ent-stt

ans=int(input())

if ans==12:

print("Great!,As expected.")
print("Over All Time Taken for Easy Level(Seconds):",elapsedtime)

score+=1

else:

print("That was Bad,man.")

loop+=1

print("Easy level over!\nThat was the most easiest questions😌")

print("Easy Level score:",score,"Out of 2")

return score

###############################################

def medium():

score=0

print("\nInitiating..")

print("Program Starting Medium level")

print("Hello",name)

print("Lets goo")

loop=0

while loop!=2:

stt= [Link]()

if loop==0:

print("Level 01")

print("🫧First Question\n 0.25 x 0.25 = \n ANS:")

ans=float(input())

if ans==0.0625:

print("That was Good 👍")

score+=1

else:

print("Good try 👏")

loop+=1

elif loop==1:

print("Level 02")
print("The difficulty Level has Increased.")

print("1.66 x 9.1\nANS:")

ent=[Link]()

elapsedtime=ent-stt

ans=float(input())

if ans==15.106:

print("Great Job!")

print("Over All Time Taken for Medium level(Seconds):",elapsedtime)

score+=1

else:

print("Its alright")

loop+=1

print("Medium level over!\nThat was a good try 😃")

print("Medium Level score:",score,"Out of 2")

return score

###############################################

def hard():

score=0

print("\nInitiating..")

print("Program Starting Hard level")

print("Hello",name)

print(":)~~Lets go!")

loop=0

while loop!=2:

stt= [Link]()

if loop==0:

print("Level 01")

print("🫧First Question\n 5.78 / 3.14 =(Answer should contain upto 2 decimal places)\n ANS:")

ans=float(input())
if ans==1.84:

print("That was Awesome!!✨")

score+=1

else:

print("Its great you tried it")

loop+=1

elif loop==1:

print("Level 02")

print("The difficulty Level Has been Maximized.")

print("Square root of 24.01\nANS:")

ent=[Link]()

elapsedtime=ent-stt

ans=float(input())

if ans==4.9:

print("Marvelous!")

print("Over All Time Taken for Hard level(Seconds):",elapsedtime)

score+=1

else:

print("Its plenty fine,That was hard")

loop+=1

print("Hard level over!\nThat was a fabulous try 😃")

print("Hard Level score:",score)

return score

name=input("Enter name *Use character,No caps* :")

print("Welcome to The Game ✨❤️\n Please Choose Options to Proceed\[Link]\[Link]\


[Link]\n")

chc=int(input("Choice(1 or 2 or 3):\n"))

tscore=0
if chc==1:

tscore+=easy()

print("Do you want to Retry?")

ha=input()

if "y"in ha:

easy()

else:

print("Next Level Awaits..️")

print("[Link]\[Link]\[Link]")

r=int(input())

if r==1:

medium()

elif r==2:

hard()

elif r==3:

pass

elif chc==2:

tscore+=medium()

print("Do you want to Retry?")

ah=input()

if "y" in ah:

medium()

else:

print("Next Level Awaits..")

print("[Link]\[Link]\[Link]")

r=int(input())

if r==1:

hard()

elif r==2:
easy()

elif r==3:

pass

elif chc==3:

tscore+=hard()

print("Do you want to Retry?")

a=input()

if "y" in a:

hard()

else:

print("[Link]\[Link]\[Link]")

r=int(input())

if r==1:

medium()

elif r==2:

easy()

elif r==3:

pass

print("The Journey was most pleasant.")

print("Total Score:",tscore)

print("Thank You for Your Time")

You might also like