0

on chatbot 1.0 practice HELP

Write a program that asks the user for an input and displays it on the screen. You'll continue working on this code after the next lesson. Task Complete the code to ask the user for input, store it in the name variable, and display it on the screen. the above I can print Tom or Alice or Bob but i can't seem to print all 3 at the same time like they ask. It always just 1 I'm very sorry if this is a very stupid question and the answer is staring me in the face, but i cant seem to figure this out name = ("Tom") print(name) i get Tom but i always seem to get only one right

10th May 2023, 8:37 PM
Jp Taljaard
Jp Taljaard - avatar
2 odpowiedzi
+ 3
Why don't you try to learn the Python course? to obtain the input from the user, the function input() is used, which asks for an argument (optional) For example: name = input("Enter your name: ") # Enter your name: (Example input: Tom) print(name) // Tom that works for all cases, if you leave input() without any parameter no text will appear before your input Happy learning and coding!
10th May 2023, 9:01 PM
NinjaGamer
NinjaGamer - avatar
0
all sorted thanks ninja. how could i have been so stupid its so easy
12th May 2023, 8:44 AM
Jp Taljaard
Jp Taljaard - avatar