CSCI 105 Ivy Tech Community College Knock Knock Joke Python Project

User Generated

szbecu

Programming

CSCI 105

Ivy tech community college

CSCI

Description

Do anything you want to spruce up the joke. Maybe tell multiple jokes, check user input, do something more interesting with the user input, add a loop and a menu, or whatever else you want. I made a normal code but cannot do the loop process.

"#print greetings and ask for name"

print("Howdy partner! What's your name?")

"#Let user input their name"

user=input()

"#print name stored in the variable and ask about the joke"

print("Howdy {}! Let me tell you a joke." .format(user))

"#print the start of the joke"

print("Knock Knock")

"#Let user respond to knock knock"

user=input()

"#print first part of the joke"

print("Nana!")

"#Let user input the response"

user=input()

"#print punch line of the joke"

print("Nana your business!")

"#print closing statement"

print("Thanks for playing!")

"#Let user to close the shell"

input("Press enter to close")

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

thanks for your kind words.I wish to get more work from you related to coding.I am f...

Related Tags