+ 5

Can somebody pls solve this?

# Ask the user for input and store it in a variable name = # Display the user input on the screen

11th Sep 2025, 12:53 PM
Luca Galvano
Luca Galvano - avatar
29 Answers
+ 13
# Ask the user for input and store it in a variable name = input("Enter your name: ") # Display the user input on the screen print("You entered:", name)
11th Sep 2025, 3:02 PM
Riyadh JS
Riyadh JS - avatar
+ 5
DO NOT write anything inside the parentheses of input(). Input is what the user enter – A user can enter different names. The app simulates user input when testing the code. Carefully compare your code with the examples in the course. Does print() have "="? NO. How do you print a variable's value? print("name") outputs "name". But you are supposed to print the values stored in the variable. Example: result = 1 print(result) vs. print("result") Compare your quotation marks to the ones given in the example codes.
11th Sep 2025, 3:39 PM
Lisa
Lisa - avatar
+ 2
name = input() #asking for input by using the input function print(name) Keep learning
11th Sep 2025, 1:51 PM
ᴜɴᴋɴᴏᴡɴ ᴅᴇᴄᴏᴅᴇʀ
ᴜɴᴋɴᴏᴡɴ ᴅᴇᴄᴏᴅᴇʀ - avatar
+ 2
Still not working:(
11th Sep 2025, 3:06 PM
Luca Galvano
Luca Galvano - avatar
+ 2
You entered the code wrongly name = input("Enter your name: ") NOT name = input(“Tom”) print("You entered:", name) NOT print=(“name”)
11th Sep 2025, 3:38 PM
Riyadh JS
Riyadh JS - avatar
+ 2
Finally solved! Here we go: name= input() “Bob” print(name) Thanks everybody for the help!
11th Sep 2025, 3:59 PM
Luca Galvano
Luca Galvano - avatar
+ 2
This is how it shoud be # Ask the user for input and store it in a variable name = input("Enter your name: ") # Display the user input on the screen print("Hello,", name)
12th Sep 2025, 1:00 PM
Alex Bright
Alex Bright - avatar
+ 2
To ask the user for input, use input : name=input() #enter your name Display user input on screen Print(name) Or name=input("enter your name:") Print(name)
12th Sep 2025, 6:32 PM
Bienvni Keba
Bienvni Keba - avatar
+ 1
# Ask the user for input and store it in a variable name = input(“Tom”) # Display the user input on the screen print=(“name”)
11th Sep 2025, 3:08 PM
Luca Galvano
Luca Galvano - avatar
+ 1
# Ask the user for input and store it in a variable name = input( 'Enter user name') # Display the user input on the screen print("You enter name here")
11th Sep 2025, 4:42 PM
Perry Davis
+ 1
# Ask the user for input and store it in name = input("please enter your name: ") # Display the user input on the screen print(name)
11th Sep 2025, 9:34 PM
Hiba
Hiba - avatar
+ 1
Print('Enter your name :') x = input() Print (Hello, 1+x)
12th Sep 2025, 1:12 AM
Asim Farheen ✴️✴️✴️🤺👿👿
Asim  Farheen ✴️✴️✴️🤺👿👿 - avatar
+ 1
Basically, you just need to ask the user to enter their name (or any input), store it in a variable, and then display it on the screen. So the user types something, the program saves it, and then shows it back.
12th Sep 2025, 6:29 AM
Karl
+ 1
this should work: name = input() print ("name")
12th Sep 2025, 6:41 PM
im probably on #1 gimme 1 day
im probably on #1 gimme 1 day - avatar
+ 1
name=input ("Enter your name:") Print(name) age=("Enter your age:") Print(age)
13th Sep 2025, 1:12 AM
Asim Farheen ✴️✴️✴️🤺👿👿
Asim  Farheen ✴️✴️✴️🤺👿👿 - avatar
+ 1
Well, your code in looking incomplete. try this one- # Ask the user for input and store it in a variable name = input("Enter your name: ") # Display the user input on the screen print("You entered:", name) Here input will ask you to input some value and print will show you the result. I hope it will work.
16th Sep 2025, 11:16 AM
Gulshan Negi
Gulshan Negi - avatar
+ 1
#include <iostream> #include <string> using namespace std; int main() { string name; cout << "Enter your name: "; cin >> name; cout << "Your name is: " << name << endl; return 0; }
20th Sep 2025, 2:47 PM
TaeCodes
TaeCodes - avatar
0
Hmm
13th Sep 2025, 3:42 AM
REAL KASH
REAL KASH - avatar
0
Sure! Here is a python code : x = input("Enter something : ") print(" You entered :,x)
13th Sep 2025, 8:52 AM
Md Mehedi Hasan
Md Mehedi Hasan - avatar
0
# Ask the user for input and store it in a variable name = input() # Display the user input on the screen print(name)
14th Sep 2025, 8:25 AM
Parth Singh Bisen