Python Programming Examples -

  Updated: June 16, 2015
     
  Strings and Numbers Click for Example Programs
  numeric vs string - examples 1 numeric_vs_string_examples_1b.py
  integer vs string - example 1 integer_vs_string_example_2.py
    string_examples_1.py
  Calculations, arithmetic  
  string work  
  Print Examples  
  Print examples 1 print_examples_1.py
 

Print examples 2

print_examples_2.py
 

First examples

first_examples.py
     
  List Examples  
  List examples list_examples_1.py
  List examples 2 list_examples_2.py
  list work  
     
  lists inside lists example lists_in_lists_example.py
     
  Loop Examples  
  Loops examples - while loop loops_examples_1.py
  Loops examples 2 - while loop loops_examples_2.py
  for loops for_loop_example_2.py
     
Conditionals - IF  
  conditionals examples 2 conditionals_examples_1.py
     
  Get a random number get_a_random_number
     
  Ranges  
     
  User Input- Keyboard  
  User input - some detail user_input_examples.py
  User input a number

user_input_a_number

  User input a number in a loop

user_input_a_number_inside_a_loop.py

     
  Pyrhon Functions simple_functions.py
     
  Dictionaries dictionary_example_1.py
     
  Boolean variables booleans_example_1.py
     
  File Input & Output  
        write to a file file_write_example_1.py
       read from a file file_read_example_1.py
  File open and read example file_read_example.py
  File write example (create or replace) file_write_example.py
     
  Turtle Graphics  
       random_color turtle_random_color.py
       random color and location turtle_rand_col_loc.py
       random width, angle, color turtle_rand_angle_width_plus.py
  Sample Programs  
 

sort program - with comments

sort_program.py
 

sort program - w/less comments

sort_program_w_fewer_comments.py
  sort program - shorter sort_list_shorter.py
  Adventure Game - under construction adventure/main_game_3.py