Name = input ("what is your name") | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Name = input ("what is your name")

It's not working and I'm so confused

23rd Oct 2021, 12:42 PM
Luke Hobson
7 Answers
+ 2
Luke, Your line looks alright, what you got error message or something? what exactly happened when you said "not working"? Was it like no output? if that's the case, then you know there's no line issuing command to print <Name>, so you just have to print <Name> print( Name ) # after you read <Name>
23rd Oct 2021, 3:18 PM
Ipang
+ 1
Owasp Dude41 You're wrong Python is serpent kind
23rd Oct 2021, 2:09 PM
Ipang
+ 1
Please always tag the language you're asking about. https://code.sololearn.com/W3uiji9X28C1/?ref=app
23rd Oct 2021, 6:20 PM
Simon Sauter
Simon Sauter - avatar
0
Is what I did correct though? Also why is python bad?
23rd Oct 2021, 2:40 PM
Luke Hobson
0
Ipang yes never venture off your shell..buddy
25th Oct 2021, 6:46 AM
YT| bill2424 | SecurityDude41
YT| bill2424 | SecurityDude41 - avatar
0
use print, it is will working: name= input(" What is your name: ") print (name)
25th Oct 2021, 9:13 AM
Sarmad Saad
Sarmad Saad - avatar
0
Luke Hobson Python is not bad, neither is any other programming language. Different languages have different strengths and weaknesses. Therefore the choice of language should always depend on what you want to do. https://code.sololearn.com/WWE2eu548roL/?ref=app
25th Oct 2021, 7:19 PM
Simon Sauter
Simon Sauter - avatar