list | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

list

File "./Playground/file0.py", line 1 >>>2**5 ^ SyntaxError: invalid syntax Why I am not getting proper output? what should I do so?

16th Apr 2020, 8:08 AM
PRIYANKA K
PRIYANKA K - avatar
6 Answers
+ 1
2**5 is fine. did you type >>> in the script? remove it and try it again
16th Apr 2020, 8:12 AM
Lisa
Lisa - avatar
+ 1
>>> is printed only in the console, it is not part of the syntax itself
16th Apr 2020, 8:58 AM
Lisa
Lisa - avatar
0
But this is >>> must to use in python know
16th Apr 2020, 8:45 AM
PRIYANKA K
PRIYANKA K - avatar
0
PRIYANKA K , It is must when you use console, not on a real program. And secondly you shall do this with print function...
16th Apr 2020, 10:17 AM
Varun Vaswani
Varun Vaswani - avatar
0
thank you guys
16th Apr 2020, 10:18 AM
PRIYANKA K
PRIYANKA K - avatar
0
welcome
16th Apr 2020, 10:21 AM
Varun Vaswani
Varun Vaswani - avatar