+ 1

how to complete a code to ask the user for input, store it in the NAME variable and display it on the screen?

input example expected output name = "Tom" Tom name = "Bob" Bob

15th Jan 2024, 9:12 PM
Ahmed Eneji Emmanuel Sunday (Ansah Godwill)
Ahmed Eneji Emmanuel Sunday (Ansah Godwill) - avatar
3 odpowiedzi
+ 4
Mahmoud Shawqat , the empty quotes ("") as argument in the input() function are not required and can be removed.
16th Jan 2024, 7:38 AM
Lothar
Lothar - avatar
+ 3
you should use input function , user_input = input("") print(user_input)
15th Jan 2024, 9:19 PM
Anonymous
Anonymous - avatar
+ 3
Ahmed Eneji Emmanuel Sunday (Ansah Godwill) This sounds like a practice challenge from Intro to Python. You should post your code attempt first if you need help. As per community forum guidelines we do not provide ready made codes but will help you debug your code 👍
16th Jan 2024, 2:11 AM
Keith
Keith - avatar