KYkid85
Posts: 18
Joined: Mon Mar 21, 2016 1:51 pm

Opening a python_games

Wed Mar 30, 2016 5:56 pm

Newbie Struggling in IDLE

$ cd python_games

$ls

Lets just say I want to open "flippy.py" in python games. How do i access this file?

-thanks

GerryG
Posts: 52
Joined: Fri Jan 22, 2016 5:06 am

Re: Opening a python_games

Wed Mar 30, 2016 6:22 pm

Start IDLE 3 - From IDLE open Flippy.py - press F5 to run the program-have fun!

User avatar
rpdom
Posts: 17173
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Opening a python_games

Wed Mar 30, 2016 6:42 pm

From the command line ($ prompt) you could run it with
$ cd python_games
$ python flippy.py

or (if the first line of the file is something like "#!/usr/bin/python"), just

$ cd python_games
$ ./flippy.py

Return to “Troubleshooting”