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”
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.
+ 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.
+ 4
Can you share your attempt?
+ 3
Took me 3 hrs to realize what the error result was telling me but this is the correct answer
name = input(" ")
print(name)
+ 2
name = input("Enter your name: ")
print(name)
+ 2
use only:
name = input()
without text inside
+ 1
Thanks for rely
+ 1
Thanks for the expert advice
0
I am exteemely grateful… you made up my day
0
Who can help?
Task
Create a timer program that will take the number of seconds as input, and countdown to 0
0
thank you very much
0
The answer is
name = (input())
print(name)