0
After watching youtub code torurial i tried a code which output was not as what i saw on that code torurial
Hello I'm beginner here please help to find out what is wrong with my code https://code.sololearn.com/cc7nhtgZtpMV/?ref=app https://code.sololearn.com/cc7nhtgZtpMV/?ref=app
3 ответов
+ 2
Check your input and output format it must be same as which is given in constraints
+ 1
Payal Agrawal
uses of wrong syntaxes ..
this is correct way look here....
name = input ("What is your name:")
print ("Hello",name)
Yould should learn this..
https://www.sololearn.com/course/JUMP_LINK__&&__Python__&&__JUMP_LINK
https://www.sololearn.com/course/Python-for-Beginners
0
name = input("What is your name?")
print("Hello, "+name)
** i did a spave betwenn comma and the name variable to the output format should be fine**
well like this print is a buildin/onboard function from python if you want to call a function you have to type
functionName()
the "=" is used for asign a value to a variable, beside that, just dont use same variable names there are asign to keywords like:
"for", "while", "if", "print", "else", "break", "continue" and a bit more =)
hope that helped you