How to code a user input | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to code a user input

Please can anybody help me figure out what’s wrong with this program name = input () print (name)

24th Mar 2022, 5:02 PM
Joshua Oyedeji
11 Answers
+ 1
name = input(" Enter Name ") # input() print(name)
26th Mar 2022, 3:49 AM
Vaibhav
Vaibhav - avatar
+ 1
print(input("Enter name: "))
26th Mar 2022, 4:11 AM
Shadoff
Shadoff - avatar
0
name = input() print(name) #remove =
24th Mar 2022, 5:06 PM
Jayakrishna 🇮🇳
0
I mean also. But small p. Whats the problem actually ?
24th Mar 2022, 5:10 PM
Jayakrishna 🇮🇳
0
I’m trying to run the code so I can get a pop up space for the user My pycharm refuses to run this code though it is not an error name = input() print (name)
24th Mar 2022, 5:15 PM
Joshua Oyedeji
0
""" What error it saying..? Code is correct.. Just copy this and run in python script here. On pop-up give input and hit enter. See output""" name = input() print(name) """ About pycharm, am not sure you may need any settings to set.. Do you running first time Or any other code running fine? """
24th Mar 2022, 5:26 PM
Jayakrishna 🇮🇳
0
Eveery other code runs fine so far
24th Mar 2022, 5:42 PM
Joshua Oyedeji
0
remove space before '('
24th Mar 2022, 6:53 PM
Shadoff
Shadoff - avatar
0
#a user enters a string #the string is assigned to name #then prints the string name=input("Enter Full Name: ") print(name)
25th Mar 2022, 9:54 PM
Josephat juma
Josephat juma - avatar
0
Everything is fine, nothing is wrong here
26th Mar 2022, 9:58 AM
Malay Patra
- 1
Print(name) I mean🤏
24th Mar 2022, 5:08 PM
Joshua Oyedeji