It is showing 'syntax error' plz help in python | Sololearn: Learn to code for FREE!

-6

It is showing 'syntax error' plz help in python

9/25/2021 7:23:01 AM

Mohan vashist

17 Answers

New Answer

+2

Share your code, then only we can see the error. https://www.sololearn.com/discuss/1316935/?ref=app

+2

Mohan vashist save your code in code playground, then click the plus option and attach your code in comment. Only then we'll be able to see what's wrong with your code

+2

Mohan vashist I am not sure what you are trying to do, so I wrote a little adaptation to your code with some options. print('Hello') print("what is your name?") name = input() # write your name print(name)

+2

Mohan vashist You have written what is your name in the same line of the print statement. Use it within the brackets. Or use it with another print statement. Or else if you want to make it as a comment use #before it . Hope it helps you🙂🙂☺️☺️☺️

0

It seems u want the program to take in a name You then need to include an input statement As follows: Input('what is your name?')

-1

Im new in coding

-1

Oh thank you so much

-1

Syntax error occurs when the syntax of your code is wrong, for example if you forget a parenthesis, colon or other symbols Please share us your code If you're still confused

-1

-1

Plz help

-1

You can do something like this print('Hello') name=input("whats your name? \n") print("hi " + name + " good morning")

-1

Here, see this code. I think this is the one you're looking for. See the syntaxes and outline of the program. https://code.sololearn.com/c4cumRf9yr8t/?ref=app I recommend you use Pydroid for Python programming because the code playground in sololearn has some limitations. You better download "Pydroid" and code in that. If you're using PC, then download some Python interpreter for your PC. All the best =)

-1

https://code.sololearn.com/ciFF296pdnMj/?ref=app you write print("name") what is your name

-1

Tell me about your code...only then I can able to find the error

-1

Share u r code

-2

-2

https://code.sololearn.com/c7z4G86giTo8/?ref=app