I am trying to print the output of my python code. But it is showing me the below error.
File "<ipython-input-3-8f2363e8378d>", line 10
SyntaxError: invalid syntax
Can anyone help me with this?
This syntax will not allow in all the platforms. If you are trying to print any string you need to use double-quotes. But here you are trying to print some variable value. So you need to use parenthesis as given below.
I hope this will help you.
but i m getting this ouput:
Enter the ...READ MORE
I found a good solution to solve ...READ MORE
You're missing a close paren in this ...READ MORE
please solve this error
You can also use the random library's ...READ MORE
colors = ['red', 'green', ...READ MORE
can you give an example using a ...READ MORE
You can simply the built-in function in ...READ MORE
You need to write your if-else code ...READ MORE
Thanks, This answer was helpful. READ MORE
Already have an account? Sign in.