0

I want to know coding for this. Please help me with this.

Complete the code to ask the user for input, store it in the name variable, and display it on the screen. Input Example Expect Example name="Tom" Tom name= "Bob" Bob

12th Oct 2023, 2:25 PM
Jaspreet Kaur
Jaspreet Kaur - avatar
9 Answers
+ 4
Jaspreet Kaur , the description with the 2 names is quite confusing. we do not have to handle 2 names, but just 1 name. > take a name as input and store it in a variable. > use this variable to output the name. we do not give ready-made codes. but it would be helpful for us to see your code, please link it here.
12th Oct 2023, 5:28 PM
Lothar
Lothar - avatar
+ 4
Fateme Biglari , it is not seen as very helpful when we are going to post a ready-made code, as long as the op has not shown his attempt here. > it is more helpful to give hints and tips, so that the op has a chance to find a solution by himself.
13th Oct 2023, 6:44 PM
Lothar
Lothar - avatar
+ 2
The hints are already written in the code window. If you can't figure out how to complete the task, I recommend you to review the material.
12th Oct 2023, 3:37 PM
Wong Hei Ming
Wong Hei Ming - avatar
0
Jaspreet Kaur, my answer maybe harsh. There is an alternative. You can just hit RUN, than you will see what are the inputs and the expected outputs. From there you can work backwards and solve the task.
12th Oct 2023, 5:36 PM
Wong Hei Ming
Wong Hei Ming - avatar
0
Do you know what asks for input?
12th Oct 2023, 10:23 PM
Annihilate
Annihilate - avatar
0
You mean this? name_input = input() print(name_input)
13th Oct 2023, 5:27 PM
Fateme Biglari
Fateme Biglari - avatar
0
Yup, that’s how you do it
13th Oct 2023, 8:34 PM
Annihilate
Annihilate - avatar
0
Just use input() and then print it.
13th Oct 2023, 8:41 PM
Werg Serium
Werg Serium - avatar
0
This practice got my mind confused but over a period of time i run the right code. As 2 names given makes it confusing. But you have to take (1) names as input and store in a viriables and use the viriables as the output.
14th Oct 2023, 11:06 AM
Rommel
Rommel - avatar