+ 1
I tried executing, >>>2**2 on Python and it's showing me error please am I doing anything wrong
5 Antworten
+ 3
Python accepts statements at the >>> prompt (for immediate execution). You don't type the >>>; that's there to tell you the interpreter is what's being used.
>>> 2**2
4
I typed 2**2. You don't need print; when there's no other clear purpose, Python assumes you want the value of things you type:
>>> a=3 # assignment; not printed
>>> a # you must want to know 'a'
3
0
your are suppose to start with print. The answer is print (2**2) and no errors will come out.
0
Thanks bro
0
check once again ...if you are getting error please paste error... becoz u should get 4 as a answer without using print function
0
your suppose to start with print. Answer is print (2**2) and you will have no errors