0

Why >>> give error?

why is that when I put >>> as shown on the sample it gives me error ?

1st Oct 2018, 5:21 AM
hand powers
hand powers - avatar
4 Answers
+ 7
>>> Just shows that it is a console.
1st Oct 2018, 8:27 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 1
In python? What do you want to do? Which sample? Probably the sample is just explaining you that you have to use them in the python console where >>> is shown before every line
1st Oct 2018, 5:28 AM
Daniele Bonomi
Daniele Bonomi - avatar
+ 1
Yes, as Daniele said the >>> are put there to denote when you are in a python REPL prompt, but you shouldn't put them, since they are not valid syntax. Just put the instructions following them. For example if the text tells you to type: >>> print("hi!") Just type: print("hi!")
1st Oct 2018, 5:42 AM
fra
fra - avatar
+ 1
hahaha I see now. Thanks guys!
1st Oct 2018, 5:45 AM
hand powers
hand powers - avatar