example:
a=**********
print'a'
It shows me the following error
OUTPUT:
Traceback (most recent call last):
File "python", line 1
a=**********
^
SyntaxError: invalid syntax
example:
a=**********
print'a'
It shows me the following error
OUTPUT:
Traceback (most recent call last):
File "python", line 1
a=**********
^
SyntaxError: invalid syntax
The idea is correct however in Python 3 you must use
print
parantesis ()
to achieve print the desired value In addition to that
a
but when you use it in print
you put it in quotation marks and that is incorrect because when you put it so 'a'
you are telling it to print a text string that is worth to
In addition to that
*
is the symbol to represent the multiplication operator Thus, it will be functional
a= "**********"
print(a)
Final result
try like this, the characters *
are reserved so you have to use them as text.
a='**********'
print(a)