Someone should kindly help on how to use input function to ask the computer to do something and to also print out the code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Someone should kindly help on how to use input function to ask the computer to do something and to also print out the code

Name="Tom" Name="Bob" How do I ask the user for input and store it in the name variable and also display it on the screen.thats the task.chatbox v1.0 that's where I got the task.kindly help me through

8th Aug 2023, 11:02 AM
Adegboyega Waheed
6 Answers
+ 4
read the lesson again, then try the task my_input = input()
8th Aug 2023, 11:25 AM
Lisa
Lisa - avatar
+ 2
Programming language? Did you google this? Because this is one of the most basic tasks for any language.
8th Aug 2023, 11:15 AM
Marcos Chamosa Rodríguez
Marcos Chamosa Rodríguez - avatar
+ 1
Waheed Review what you've learned. Take a look at the input and output lesson in Python. The lesson explains how to get user input using "input()" function. It also demonstrates how to display information on the screen using "print()" function.
8th Aug 2023, 7:22 PM
Chris Coder
Chris Coder - avatar
0
I was given the input examples as Name=Tom Name=Bob So the problem is to store the user input in the name variable and display it on the screen
8th Aug 2023, 2:05 PM
Adegboyega Waheed
0
I didn't google it,it's part of the problems on the courses on python on this app
8th Aug 2023, 2:06 PM
Adegboyega Waheed
0
Thanks everyone I solved it
8th Aug 2023, 10:02 PM
Adegboyega Waheed