![]() You can even edit them before pressing ENTER. These shortcuts let you scroll through the list of previously entered commands. Another important set of IDLE shortcuts are the ones for accessing command-line history: Alt + p/n (p for previous, n for next) in Windows, and Ctrl + p/n in Mac.In some Windows systems, it may be Fn + F5 or Ctrl + F5. On Macs, the shortcut for running your script is Fn + F5.Take a look at "Options" and configure IDLE if you wish.Open an already-written script lesson01.py.Shell restarts and prints out 'hello world!'."File -> Save As", name your file "hello.py". ![]() We are using Python 3, therefore the syntax is print(.) for us. Note the parentheses ( ), which was not used in the video, because it uses Python 2.7. print('hello world!') in script hello.py.To open an editor screen, "File -> New File".We will be using Python's own IDLE as the GUI.
0 Comments
Leave a Reply. |