Solve plz | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Solve plz

When input= rahul why it does not following if statement and i want space between statements and input in output https://code.sololearn.com/cYH1xPcwYOyn/?ref=app

18th Jul 2021, 5:28 AM
Aayush Jat
Aayush Jat - avatar
3 Answers
+ 4
Aayush Jat Because your passed parameter is wrong. Do this freecouple(g)
18th Jul 2021, 5:33 AM
A͢J
A͢J - avatar
+ 4
you should pass the g variable as param to the function . you're passing here the string 'g' not the variable g is not the same as 'g'
18th Jul 2021, 5:35 AM
Med Amine Fh
Med Amine Fh - avatar
+ 3
Put a newline character ("\n") at the end of your input string. g=input("please enter your name\n")
18th Jul 2021, 5:57 AM
David Ashton
David Ashton - avatar