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?
9 Réponses
+ 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
+ 3
Then you print the name variable
i.e print(name)
+ 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()
+ 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`.
+ 1
And mind the blank spaces in the message.
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.
0
What do i print?
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
0
Thank you. I appreciate. I am a beginner and want to learn python for data science. Is it a good starting point?