0

Tried many times the below task but failed. My progress is blocked. Can someone 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. Expected output = “Tom” Expected output = “Bob”

9th Sep 2023, 3:52 AM
Elsir Nour
Elsir Nour - avatar
12 Réponses
+ 8
Elsir Nour , please do not ask a new question inside an already existing question. it is better to start a new question by creating a new post. > as usual, please show the code attempt you have done so far. put your code in playground, save it, create a link to it and post it.
10th Sep 2023, 11:07 AM
Lothar
Lothar - avatar
+ 6
Elsir Nour , if you are doing a `normal` exercise or coding, you can use text inside the parenthesis of the print() function as a user prompt. no problem at all. but this should NOT be done when doing a code coach exercise. the reason is because in code coach all possible inputs and outputs are defined and will be evaluated when applying the test cases. a user propt in the input() function is seen as an output that is not required and not correct.
9th Sep 2023, 8:33 PM
Lothar
Lothar - avatar
+ 4
Can you share your attempt?
9th Sep 2023, 6:52 AM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
+ 3
Took me 3 hrs to realize what the error result was telling me but this is the correct answer name = input(" ") print(name)
7th Jan 2024, 6:19 PM
Queen C Kennedy
Queen C Kennedy - avatar
+ 2
name = input("Enter your name: ") print(name)
9th Sep 2023, 9:13 AM
Elsir Nour
Elsir Nour - avatar
+ 2
use only: name = input() without text inside
9th Sep 2023, 9:32 AM
Angela
Angela - avatar
+ 1
Thanks for rely
9th Sep 2023, 9:13 AM
Elsir Nour
Elsir Nour - avatar
+ 1
Thanks for the expert advice
9th Sep 2023, 10:00 PM
Elsir Nour
Elsir Nour - avatar
0
I am exteemely grateful… you made up my day
9th Sep 2023, 11:09 AM
Elsir Nour
Elsir Nour - avatar
0
Who can help? Task Create a timer program that will take the number of seconds as input, and countdown to 0
10th Sep 2023, 9:32 AM
Elsir Nour
Elsir Nour - avatar
0
thank you very much
23rd Jan 2024, 2:39 PM
Kudiwanaye Mushandu
Kudiwanaye Mushandu - avatar
0
The answer is name = (input()) print(name)
4th Feb 2024, 5:27 AM
Kudiwanaye Mushandu
Kudiwanaye Mushandu - avatar