Cool Python Program

 print("Hello!")

print("Welcome to the Quiz Show!!!")

print("Kindly Enter your name: ")

name=str(input())

print("O dear,",name,"This is so nice to talk to u!!") 

g=int(input("Are u a male or female, if male press 1 and if female press 2: "))

if(g==1):

    print("Thank u sir for your response!!") 

elif(g==2):

    print("Thank u mam for your response!!")

else:     

    print("You have entered an invalid number sir, We are considering that u have no gender. Don't mind sir. If this was an error pls rectify it next time. Sorry!!")   

print("I would like to tell u,",name," that I am going to ask u some basic questions")

print("Are u interested to answer")

x=int(input("Pls enter 1 if u are interested or enter 0 if not"))

if (x==0):

    print("Sorry to waste your time,",name,". Hope to see u again!!")

elif (x==1):

    print("Thank u for showing interest")

    print("Dear",name,"The first question is: ")

    print("How old are u??")

    k=int(input()) 

    if(k<18):

        print("O dear u are a minor!! You are not eligible for my question Go home",name," and drink milk.")

        str(input())

    elif(k>18):

        print("O dear,",name," You are an adult. So u are eligible for my questions Congrats.")

        str(input("Press Enter!!"))

        print("Stop wasting time here, go and study!!")

        print("You are an adult. Be Responsible..")

        print("LOL!!")

        str(input())

else:

    print("OO gadhe padh le pehle!!! Enter correct number")

    str(input())

Comments

Popular posts from this blog

Solving Kepler’s equation by Newton-Raphson method

Velapanti Python Program

Determining Wien’s constant using bisection method and false position method. (Python Program)