5 Réponses
+ 9
DO YOU NOTICE THAT YOUR CAPS LOCK IS ON???
Show your code attempt. You will not learn programming by hording ready-made codes.
0
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.
# ask the user for an input and store it in a variable
# display the user input on the screen
THIS IS MY CODE.....
name = ('tom')
input (name)
print (input)
THIS ARE THE RESULTS..... BUT ITS SEEMS TO BE INCOMPLETE COZ IT NOT SHOWING I HAVE PASSED
Test Case 1
Input
Tom
Your Output
tom<built-in function input>
Expected Output
Tom
Test Case 2
Input
Alice
Your Output
tom<built-in function input>
Expected Output
Alice
Test Case 3
Input
Bob
Your Output
tom<built-in function input>
Expected Output
Bob
https://www.sololearn.com/en/learn/courses/JUMP_LINK__&&__python__&&__JUMP_LINK-introduction/code-coach/1122640829?returnUrl=/en/learn/courses/python-introduction?location=2
0
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.
# ask the user for an input and store it in a variable
# display the user input on the screen
THIS IS MY CODE.....
name = ('tom')
input (name)
print (input)
THIS ARE THE RESULTS..... BUT ITS SEEMS TO BE INCOMPLETE COZ IT NOT SHOWING I HAVE PASSED
Test Case 1
Input
Tom
Your Output
tom<built-in function input>
Expected Output
Tom
Test Case 2
Input
Alice
Your Output
tom<built-in function input>
Expected Output
Alice
Test Case 3
Input
Bob
Your Output
tom<built-in function input>
Expected Output
Bob
https://www.sololearn.com/en/learn/courses/JUMP_LINK__&&__python__&&__JUMP_LINK-introduction/code-coach/1122640829?returnUrl=/en/learn/courses/python-introduction?location=2
0
HEKIMA MUHUKA ,
Every one of the three lines in your code has a problem, which means you really haven't learned what you need to know to solve any of it. I think if people give you code fixes, there's a risk you'll plug them in and get the right answer without knowing why, which will ultimately harm you more than it helps you.
You should start the course again. There's no shame, since the goal is learning. This time, don't rush through to keep your streak. Go at your own pace so it really sticks.
That's what I do. I break my streak on purpose for the hard parts.