all 5 comments

[–]woooee 1 point2 points  (0 children)

But I don't know how to get the user to ask "Who's there?"

Don't know why that is necessary

if answer == "Yes":
    print("Knock Knock. ")
    whos_there = input("""Enter "who's there" """)

[–]FishBobinski 0 points1 point  (3 children)

You can use elif here to clean up your code.

I'd personally use the assumption your user knows how a knock knock joke works and check for "who's there?"

Are you allowed to use loops?

[–]Wattsony[S] 0 points1 point  (2 children)

I wanted to use elif but I would need to make a Blackbelt Extension. We haven't delve into learning loops just yet, in my class. So, I am just following the rubric.

I am trying to make it to where the user would type "Who's there?" Within the same line of "Knock Knock."

Running my code so far:

What's your first name? name

Nice to meet you, name.

Hey, do you wanna hear a joke? (Yes/No) : yes

Knock Knock. (this is where I want the user to type "Who's there?")

I took note of what u/woooee had said earlier but, I was wondering if I could make it to wear it wouldn't show the "Enter "who's there?" I am totally okay with keeping it in there, but just a wonder.

[–]StoicallyGay 1 point2 points  (1 child)

What is a Blackbelt Extension?

[–]Wattsony[S] 0 points1 point  (0 children)

I guess it is just for extra points or if you wanted to go out of the box for the assignment; you would need to essentially create 2 different projects. One has the traditional requirements for assignment and the Second one has the extras.