0

Python query

How do you make the three arrows to the right in python

11th Jan 2020, 3:30 PM
Wayne Konzvo
5 Respuestas
+ 6
The 3 chevrons '>>>' are the input prompt beginning a new line in the Python console, or interactive shell. They are not part of the code and are never written. The lessons use them to show what code run in the shell looks like (and frequently cause some confusion). Use the "try it yourself" feature in the lessons and you will see there are no >>> prompts used. If you are running Python on a PC using IDLE (or on an Android device using Pydroid3 or QPython3), you can try the console or the code editor. https://docs.python.org/3.6/tutorial/interpreter.html?highlight=interpreter The example is showing what the code looks like in the console. The computer starts each line with >>> (you don't type them in) and the lines are not numbered. In the code playground (where you "try it yourself"), no >>> prompt is used and the lines are numbered. That's why >>> gives an error. The Python console is an interactive shell like the command line interpreter 'cmd' in Windows which uses the > prompt to begin each line.
12th Jan 2020, 1:37 AM
David Ashton
David Ashton - avatar
+ 5
This is from the second lesson: "Run, save, and share your Python code on our Code Playground without installing any additional software. When using a computer, you will need to download and install Python from www.python.org. Note the >>> in the code above. They are the prompt symbol of the Python console. Python is an interpreted language, which means that each line is executed as it is entered. Python also includes IDLE, the integrated development environment, which includes tools for writing and debugging entire programs."
12th Jan 2020, 1:37 AM
David Ashton
David Ashton - avatar
+ 1
I don't get your question exactly. >>> above three arrows appear when you start python via command line. Because python is a script language, you can type instructions line by line.
11th Jan 2020, 3:44 PM
eunho
eunho - avatar
0
Hi
11th Jan 2020, 7:55 PM
حبيب الله عبدالباقي
حبيب الله عبدالباقي - avatar