0

Input challenge

I have a code that I could not complete the task. It is under the introductory part of python input. I have a screenshot, how do I upload it here?

20th Jul 2024, 7:52 AM
Ibrahim Khalif Muktar
Ibrahim Khalif Muktar - avatar
9 Respuestas
+ 5
Ibrahim Khalif Muktar Why are you trying with 'Tom' ? You have to take input and then store it in the variable Like name = input() Is there any other doubt you are having
20th Jul 2024, 8:00 AM
Hacker Badshah
Hacker Badshah - avatar
+ 3
Then you print the name variable i.e print(name)
20th Jul 2024, 8:03 AM
Hacker Badshah
Hacker Badshah - avatar
+ 3
Ibrahim Khalif Muktar Remove the message from inside input You don't have to show it in the output because Do only name = input()
20th Jul 2024, 9:09 AM
Hacker Badshah
Hacker Badshah - avatar
+ 2
Ibrahim Khalif Muktar , according your questions in this post, it would make sense if you start learning the basics with `introduction to python` first. also try to practice as much as possible. you can use exercises from the `code coaches` that can be found in the community section. start with the once that are marked as `easy`.
20th Jul 2024, 10:54 AM
Lothar
Lothar - avatar
+ 1
And mind the blank spaces in the message.
20th Jul 2024, 9:46 AM
Lisa
Lisa - avatar
0
#•Ask-the user for input and store it in•a•variable name =• "Tom" 2 3 4 #•Display the user input on the screen 5 | print (name) I tried with Tom but there are 3 tests that i need to pass.
20th Jul 2024, 7:54 AM
Ibrahim Khalif Muktar
Ibrahim Khalif Muktar - avatar
0
What do i print?
20th Jul 2024, 8:01 AM
Ibrahim Khalif Muktar
Ibrahim Khalif Muktar - avatar
0
# Take the name as input name = input("Enter the user's name: ") # Use concatenation to join 2 strings message = "Nice to meet you," + name # Display the message to the user print(message) What is the problem with that code
20th Jul 2024, 8:56 AM
Ibrahim Khalif Muktar
Ibrahim Khalif Muktar - avatar
0
Thank you. I appreciate. I am a beginner and want to learn python for data science. Is it a good starting point?
20th Jul 2024, 9:47 AM
Ibrahim Khalif Muktar
Ibrahim Khalif Muktar - avatar