Difference between revisions of "CSC111 Lab 1 Preparation 2014"

From dftwiki3
Jump to: navigation, search
 
Line 31: Line 31:
  
 
<br />
 
<br />
=Starting Python on a Lab Computer=
 
<br />
 
* If your computer is not on, turn it ON, please!
 
* When prompted for ''booting''  Mac or Windows, select the '''Mac''' if you have the choice.
 
* Login using the Smith credentials (or the account that was given to you as a 5-college or high school student)
 
* 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'''
 
<br />
 
<tanbox>
 
'''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!
 
</tanbox>
 
<br />
 
 
==Idle==
 
<br />
 
* Idle is the name of an ''editor'' one can use to create Python program on the Mac.
 
* 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.
 
 
<br /><center>[[Image:CSC111_PythonShell.png]]</center>
 
<br />
 
 
* 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.
 
  
 
<br /><center>[[Image:CSC111_PythonEditShellWindows.png|600px]]</center>
 
<br /><center>[[Image:CSC111_PythonEditShellWindows.png|600px]]</center>

Latest revision as of 12:08, 28 January 2014

--D. Thiebaut (talk) 10:39, 28 January 2014 (EST)

PythonLogo.jpg

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.



Installing and Running Python on your Laptop

  • Skip this section if you are working on one of the computers in FH241.


Note that we will be using Python Version 3 for this class, and NOT VERSION 2. As long as your version of Python is 3.xxx where xxx is any series of numbers, you should be fine.


  • Once the installation is complete, look for the Python IDLE application in your All Programs or Applications areas, depending on whether you're using a Windows or a Mac computer. Once you start it, you should see something similar to this:


Python3ShellAndEditor.png


  • If you only see the Python Shell window, use the menu and click on File, New Window to bring the editor window up
  • You are now ready for this lab!



CSC111 PythonEditShellWindows.png



That's it for right now. The remaining part of the lab will be available starting on Wednesday at 1:00 p.m. Stay tuned!