Skip navigation
NASA Logo, National Aeronautics and Space Administration
Modeling Guru Banner
Currently Being Moderated

ASTG Python Camps (APyC) for Beginners

Created on: Mar 5, 2019 10:52 AM by Jules Kouatchou - Last Modified:  Mar 5, 2019 10:57 AM by Jules Kouatchou

ASTG Python Camp (APyC) for Beginners



Why Python?

  • A general-purpose interpreted, interactive, object-oriented, and high-level programming language.
  • Has a simple syntax that makes it suitable for learning programming as a first language. It wasdesigned to be simple, easy to read and understand, flexible, expendable.
  • Has a large ecosystem (huge number of resources developed for Python that keep getting updated) and growing user community.
  • Is a multipurpose language that can be used in areas such as web development, data analysis, artificial intelligence, finance and trading, computer graphics, game development, and scientific computing.


Course Description:

This course is designed to help participants learn the basic concepts of Python programming. We cover variables, data types, conditional statements, loops, functions, modules, reading/writing text files and simple graphing. This course will be organized in a series of (one-hour) lectures each of which consisting of a formal presentation and a time devoted to exercises or mini-projects. Everything will be taught in Python 3. However, we will ensure (as far as possible) that all the examples presented could also be executed with Python 2.7.



None. However, participants are expected to be able manipulate a web browser, to open command prompt window or terminal window and edit a text file.


Expected Outcome:

At the end of this training, participants will be able to:

  • Understand basic computer programming principles
  • Use a Jupyter notebook
  • Know the main Python data types
  • Manipulate conditional statements and loops
  • Write their own Python modules
  • Read/Write ASCII files
  • Do basic visualization with Python


Detailed Agenda:


Day 1 Morning: Getting Ready

  1. Preparing your computer
  2. Basic shell syntax
  3. Launching Python (python, ipython, Jupyter) and Basic Operations
    1. a.  Add number
    2. b.  variables
    3. c.   Print
    4. d.  Assignment operators


Day 1 Afternoon: Basic Programming

  1. Python Data Types I
    • Integers
    • Floats
    • Strings
  2. Python Data Type II
    • List
    • Set
    • Tuple
    • Dictionary
    • Counter
  3. Conditional Statements and Loops
    • If Statement
    • For Loop
    • While Loop, Break, Continue
    • Try & Except


Day 2 Morning: Modules

  1. Creating your own Functions
  2. Creating your own Modules
  3. Introduction to few Python Built-in Modules (xlwt, Datetime, etc.)


Day 2 Afternoon: IO & Basic Visualization

  1. Reading and Creating Text Files
  2. Visualization with Matplotlib


What we expect from you:

  1. Bring your own laptop and make sure that it has a Python 3.x distribution (we suggest Anaconda) installed in it. We are more familiar with Mac laptops but a Window based laptop is fine.
  2. Be ready to learn and do the assignments.
  3. Ask questions when you need help.
  4. Have a positive attitude!
Comments (0)
USAGov logo NASA Logo -