CSC111 Lab 1 2011

From dftwiki3
Revision as of 11:54, 6 September 2011 by Thiebaut (talk | contribs) (Idle)
Jump to: navigation, search

--D. Thiebaut 12:12, 6 September 2011 (EDT)


FUN WITH PYTHON


This lab is just an introduction to having fun with Python. It's purpose is to have you explore the different systems that are available to you, and get a sense of how to program in an "intuitive" fashion.




Python on the MAC

  • If your computer is not on, turn it ON!
  • When prompted for booting Mac or Windows, select the Mac
  • When prompted for an account and password, use the 111a-xx account that will be given to you in the lab.


CSC111AccountPassword.png


  • Once you see the Desktop, click on the Finder (bottom left icon on the Desktop), and look in the Science Apps folder for Python 3.2.
  • Start IDLE


Tip: if you can't find Idle, use the magnifying glass icon at the top right of the screen and search for idle and you should find it!


Idle

  • If the window you start with looks like this (see below), then use the top menu and click File, New Window to open an editing window.

CSC111 PythonShell.png


  • You should now have two windows on your screen, one the editing window, the other the shell window, where the program will send its output.

CSC111 PythonEditShellWindows.png


Useful Links

  • If you want to install Python 3 on your Mac or Windows laptop/desktop, check this page and follow the links for the appropriate operating system.