Class 4 – Wednesday, January 23

Variation on a theme

A variable — Is like a box or a name — We must all know this

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


Look both ways


What is happening today


Download right now


Download as soon as you can


A code walk through — getting a mental model of variables and assignment


In-class comportment


Agenda


Important questions


Program variety.py


Program hip_hopping_down_the_bunny_trail.py


Program echo.py

Please provide text: My favorite color is sometimes electric blue

Your reply was: My favorite color is sometimes electric blue

Please provide more text: I know someone whose favorite number is 88

Your new reply was: I know someone whose favorite number is 88

Please provide text: The name Hannah is a palindrome

Your reply was: The name Hannah is a palindrome

Please provide more text: I sometimes misspell misspell as "mispell"

Your new reply was: I sometimes misspell misspell as "mispell"

Please provide text: I like the word dabchicks

Your reply was: I like the word dabchicks

 

Please provide more text: Do you know why I like the word dabchicks

Your new reply was: Do you know why I like the word dabchicks


Program favorite_word.py

Another use of the built-in function input().

Introduces the built-in function len().

Tell me a favorite word: rhythms

 

Did you know that rhythms has length 7

Tell me a favorite word: strengths

 

Did you know that strengths has length 9

Tell me a favorite word: squirreled

 

Did you know that squirreled has length 10


Program psychoanalyst.py

Tell me what is on your mind: I worry about the future

 

Hmmm. Why is -- I worry about the future -- on your mind: Because it it coming

 

Oh? I wish we had more time to chat. So long.

Tell me what is on your mind: A fluttering butterfly

 

Hmmm. Why is -- A fluttering butterfly -- on your mind: I do not want rain

 

Oh? I wish we had more time to chat. So long.

Tell me what is on your mind: Is superman colorblind

 

Hmmm. Why is -- Is superman colorblind -- on your mind: To account for fashion sense

 

Oh? I wish we had more time to chat. So long.


To do list




wikimedia creative commons license rabbits galore





selfie at Woodlands Elemenary Walk for MLK





wikimedia creative commons license dabchick

 


 
  © 2020 Jim Cohoon   Resources from previous semesters are available.