Class 3 – Monday August 31

March on even though it’s August

Together we learn — To say what we mean to say — Most valuable skill

What makes me happy — Students asking their questions — So please keep it up.

That Black Lives Matter — Should be so easy to grasp — People are people


Look both ways


Examples from last class – any questions?


What is happening today


Examples of the day – please download now

### operator + performs concatenation

a = fire

b = fighter

a + b = firefighter

### * operator produces repeated concatenation

m = Wahoo-Wah!

n = 3

m * n = Wahoo-Wah!Wahoo-Wah!Wahoo-Wah!

n * m = Wahoo-Wah!Wahoo-Wah!Wahoo-Wah!



Terminology to which you should become accustomed

•   Variable            

•   Value        

•   Operator            

•   Concatenation            

•   Decimal division            

•   Integer division            

•   Remainder            

•   Mod

•   Type

•   Type int            

•   Type float

•   Type str

•   Keyword


Does piaget.py (de)bug you

Purpose: correct errant code

Author: Jim Cohoon

Id: jpc

  print( We learn best, when we must invent. -- Jean Piaget



Python arithmetic


Keywords


To do list


Take aways

  • Takes two strings s and t and produces a new string by first copying s and immediately following it with a copy of t
  • Takes its integer n operand and its string operand s and produces a new string that is n copies of s

We are star dust

viawWikipedia:fFull-sky image derived from 2009 NASA  WMAP data

Do you play

open clipart derived crwth

 


  © 2020 Jim Cohoon   Resources from previous semesters are available.