Please enter a integer for knick-knacking (pyhton question)?
if the number is 1, with his thumb
if the number is 2, with his shoe
if the number is 3, with his knee
if the number is 4, at his door

this is what i have -_-

def main():
    again = "Y"
    while again == "y" or again == "Y":
        
            number = input("enter your number:")
    

            A = "with his thumb"
            B = "with his shoe"
            C = "with his knee"
            D = "with his door"
    

            elif number == 1:
                print "Your grade is A."
            elif number == 2:
                print "Your grade is B."
            elif number == 3:
                print "Your grade is C."
            elif number == 4:
                print "your number is D."
            else:
                print "Your grade is C."
main()

Recommended Answers

All 2 Replies

and what is your question?

Yeah, I don't understand the question.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.