Difference between revisions of "Pytuts"

From CoolWiki
Jump to navigationJump to search
Line 19: Line 19:
 
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be
 
* webEx software.  We will use this online collaboration tool for viewing the presentation.  You don't need to do anything right now.  But, be
 
prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.
 
prepared to let webEx download their app on your computer on the first session.  I'll allow time to tweak webEx installation during the first session.
 +
  
  
Line 24: Line 25:
  
 
==Session 1: Introduction to programming, spyder and python.==
 
==Session 1: Introduction to programming, spyder and python.==
: Tuesday, 5/27
+
: Tuesday, 5/27/2014
: Presentation
+
: Link to Presentation
 
: Exercises:
 
: Exercises:
 
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like.  I will sort the numbers first .... you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.
 
:: What is the maximum?  You are given a list of numbers.  Describe (no programming here) how you will determine which of the numbers is the largest.  I am looking for step-by-step direction at the very basic level.  If your answer is something like.  I will sort the numbers first .... you are on the wrong track.  I am asking how you will start to sort the numbers to begin with.
Line 31: Line 32:
  
  
==Session 2: 5/03: Data, variables, and mathematical operations.==
+
==Session 2: Data, variables, and mathematical operations.==
 +
: Tuesday, 6/3/2014
 +
: Link to Presentation
 +
: Exercises:
 +
::
 +
: Solutions
  
  
==Session 3: 5/10: Controlling your program's flow.==
+
==Session 3: Controlling your program's flow.==
 +
: Tuesday, 6/10/2014
 +
: Link to Presentation
 +
: Exercises:
 +
::
 +
: Solutions
  
  
==Session 4: 5/17: Working with files and functions.==
+
==Session 4: Working with files and functions.==
 +
: Tuesday, 6/17/2014
 +
: Link to Presentation
 +
: Exercises:
 +
::
 +
: Solutions
  
  
==Session 5: 5/24: Plotting and other miscellanea.==
+
==Session 5Plotting and other miscellanea.==
 +
: Tuesday, 6/24/2014
 +
: Link to Presentation
 +
: Exercises:
 +
::
 +
: Solutions
  
  

Revision as of 21:28, 5 May 2014

Python programming for non-programmers

This tutorial series will walk you through the very basics of computer programming using the python scripting language. The course is targeted towards the complete novice programmer. That is, someone who has never programmed in any language, or has very little experience in programming.

Programming is an essentially requirement for modern scientific research. Python, in particular, is heavily used in astronomy for its relative ease of use and power.


Registration

You are not required to register for the course, but it will be helpful for me to know how many will attend in person. To do that, please send me and e-mail at babar@ipac.caltech.edu with your e-mail address and use the subject line: python tutorial.


Prerequisites

To join the online course and participate in python programming exercises, you will need the following:

  • Python installed on your computer. We will use the anaconda distribution
http://continuum.io/downloads
  • webEx software. We will use this online collaboration tool for viewing the presentation. You don't need to do anything right now. But, be

prepared to let webEx download their app on your computer on the first session. I'll allow time to tweak webEx installation during the first session.


Tentative schedule

Session 1: Introduction to programming, spyder and python.

Tuesday, 5/27/2014
Link to Presentation
Exercises:
What is the maximum? You are given a list of numbers. Describe (no programming here) how you will determine which of the numbers is the largest. I am looking for step-by-step direction at the very basic level. If your answer is something like. I will sort the numbers first .... you are on the wrong track. I am asking how you will start to sort the numbers to begin with.
Solutions


Session 2: Data, variables, and mathematical operations.

Tuesday, 6/3/2014
Link to Presentation
Exercises:
Solutions


Session 3: Controlling your program's flow.

Tuesday, 6/10/2014
Link to Presentation
Exercises:
Solutions


Session 4: Working with files and functions.

Tuesday, 6/17/2014
Link to Presentation
Exercises:
Solutions


Session 5Plotting and other miscellanea.

Tuesday, 6/24/2014
Link to Presentation
Exercises:
Solutions


Previous incarnatation

You can look a previous incarnation of this tutorial series for the NITARP/SHIPs program for a more specific idea about the course.

http://coolwiki.ipac.caltech.edu/index.php/PythonOnSHIPs