+ 1
Please can someone show me what is wrong with this code I don't understand thanks very much
3 Réponses
+ 3
# This code gets the input and stores it in the inp variable. Then, it prints it.
inp = input("Enter something please:")
print(inp)
+ 1
This will be the correct way.
a = input("Enter something please:")
#Enter something please: This is what\nthe user enters!
#'This is what\\nthe user enters!'
print(a)
• Dont use unwanted lines of neccessary coment them
• assigne a variable to user input in order to use its value.
+ 1
x = input("Enter something please:\n\n")
print(f"You EnteredThis: {x}")