#๐Ÿ”’ Even though I added it to the correct part, its still saying that im wrong

12 messages ยท Page 1 of 1 (latest)

shadow charmBOT
#

@onyx lynx

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

onyx lynx
#
if learning_option == "1":
    print("The Print function. The print function is probably the most basic thing there is! Whatever you wish to print on your terminal will have to be enclosed in parentheses and quotations such as: print('hello world')")
    time.sleep(5)
    print("Now you try!")
    while True:
        user_print = input("Print out: 'hi'. ").strip()
        if user_print not in ["print('hi')", 'print("hi")']: #make it allow print("hi")
            print("That's not correct :( you need to double check your typing! 'hint': print('your_text_here')")
        else:
            print("Congrats! You did it!")
            time.sleep(0.5)
            print(what_else)
            break```
#

I specifically said that if they are not in the list to say "that's not correct" but the only thing it will say i am correct for

#

is print("hi")

#

and its driving me insane

#

is this a known issue?

#

or am i being stupid

#

also it has import time if you were planning to paste it in vscode or smth

#

even making two if statements doesnt work

shadow charmBOT
#

@onyx lynx

Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.

#

๐Ÿ”’ Even though I added it to the correct part, its still saying that im wrong