Horje
quiz game in python Code Example
quiz game in python
import turtle
q1 = input("Do you wanted to play our game Y/N?\n--->")
q1= q1.lower()
if q1== "y":
          print("ok then let's start")
          a=input("What does cpu stands for?\n-->")
          a=a.lower()
          if a=="central processing unit":
                    print("the answer "+a+" is correct! So congratulations")
          else:
                    print("the answer "+a+" is incorrect")
          b=input("What does ALU stands for?\n-->")
          b=b.lower()
          if b=="arthemetical logic unit":
                    print("the answer "+b+" is correct! So congratulations")
          else:
                    print("the answer "+b+" is incorrect")
          c=input("What does cu stands for?\n-->")
          c=c.lower()
          if c=="control unit":
                    print("the answer "+c+" is correct! So congratulations")
          else:
                    print("the answer "+c+" is incorrect")
          d=input("What does SSD stands for?\n-->")
          d=d.lower()
          if d=="solid state disk":
                    print("the answer "+d+" is correct! So congratulations")
          else:
                    print("the answer "+d+" is incorrect")
          e=input("What does MU stands for?\n-->")
          e=e.lower()
          if e=="memory unit":
                    print("the answer "+e+" is correct! So congratulations")
          else:
                    print("the answer "+e+" is incorrect")
else:
          print("ok then next time")
          quit




Python

Related
0 1 1 2 3 5 in python Code Example 0 1 1 2 3 5 in python Code Example
python scroll Code Example python scroll Code Example
pyqt grid layout Code Example pyqt grid layout Code Example
To convert Date dtypes from Object to ns,UTC with Pandas Code Example To convert Date dtypes from Object to ns,UTC with Pandas Code Example
turn off subplot Code Example turn off subplot Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9