Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Exploring Python

Vamsi Kurama
November 16, 2014

Exploring Python

APPyUG Meetup - Exploring Python Slides

Vamsi Kurama

November 16, 2014
Tweet

Other Decks in Programming

Transcript

  1. Advertisement — Installation Teaser — C & Python I Half

    — All Intro II Half — Built Functions, Methods Climax — Solving Daily Life Problems
  2. Python is a general purpose, high level language. 
 It

    is dynamically typed and interpreted language
  3. Conditionals PIT HOLE: Don’t forget to add ‘:’ at the

    end of your conditional statement. Indentation is must.
  4. Math Operators +, - ,*, **, /, %, << ,

    >>, &, |, ^, < >, <=, >=, ==, != ** The Beautiful Math Library is also your Treasure
  5. Compound Data Types list = [23,24,1,2,34,4] # Collections, Arrays in

    Other Languages dictionary = {1:”hello”,2:”bye”} # Key Value Pairs tuples = () # Locked Sequences file = open(‘name.ext’,’m’) # Takes in File into file Variable
  6. For Loop for VAR in COLLECTION: l = [23,43,12,32,2] for

    i in l: print i d = {‘EK4’:’ECE’,’EK5’:’CSE’} for i in d: print d[key] t = (22,32) for i in t: print i file = open(‘names.txt’,’r’) for i in file print i
  7. Iterators PIT HOLE: Don’t forget to add ‘:’ at the

    end of your iterative statement. Indentation is must after your iterative statement.
  8. The for statement iterates through a collection The while statement

    simply loops until a condition is False Making it Clear !