Sunday, February 28, 2016

February 29, 2016

Objective:  Use a version control system to collaborate on a class-wide software project

Old Business
  • Resubmit 1.3.7 and 1.3.8 using the txt -> pdf process if you submitted them some other way.  Follow instructions in green just before the conclusions in each activity.  I need to see the Python code properly formatted to grade it.
  • Submit ir resubmit your Blackjack extra credit project as a .py file.  See revised instructions in the Blackjack extra credit activity.
New Business - 1.3.9 Version Control
  • Show 1.3.9 Version Control.pptx 
  • Science classroom visits 
  • Go to, create an account, do the Hello world tutorial
  • Tell Github user name to the person collecting them, one per pair
  • Do 1.3.9 Activity - intro to GitHub
  • 1.3.9 Resources> Project 1.3.9 Supplement: The Iterative Prisoner’s Dilemma

Friday, February 26, 2016

February 26, 2016

Objective:  Use while loops in Python

  • 1.3.7: Mystery of the skewed distribution - roll_hundred_pair()
          Show roll_hundred_pair() w/o and with bins argument to plt.hist()
          Effect of number of rolls 100 vs 10000
          Expected distribution - dice_sums() 
  • Resubmit 1.3.7
          Need to see one of the three programming projects for question 11
          Combine everything into one pdf file and submit
                 - see instructions in activity file.
  • 3rd hour: Take Activity 1.3.6 Check for Understanding #1 & #2.
  • Finish and submit 1.3.8
           Use %logstart to make a log file.  Include answers to questions
                     and conclusions.
           Combine everything into one pdf file and submit
                 - see instructions in activity file.

February 25, 2016


Wednesday, February 24, 2016

February 24, 2016

Objective: Use while loops in Python

  • Review conclusions to 1.3.7 for loops
  • Intro to while loops 
  • Submit 1.3.7
  • Start 1.3.8 - while loops

Tuesday, February 23, 2016

February 23, 2016

Objective:  Use for loops in Python

  • Review of data types (int, long, float), data structures (string, tuple, list), and control structures (if, for, while).
  • Finish 1.3.7
  • Discuss conclusions to 1.3.7
  • Submit 1.3.7
  • Start 1.3.8 if time permits or work on Blackjack
Friday:  Quiz 1.3 on data types (int, long, float), data structures (string, tuple, list), and control structures (if, for, while)

Monday:  Blackjack extra credit project due

Friday, February 19, 2016

February 22, 2016

Objective: Use for loops to control program flow

Starting activity
  • Start copying definitions of  Key Terms for Lesson 1.3 into Notebook. (N22-N24).  Will be checked in class on Friday.
  • K-12 Steam Expo at Pioneer Wed. 2/24 6-8 pm. Need volunteers to show projects.  EC, NHS
  • Look at grades in PowerSchool and my comments in Canvas
  • Calendar in Canvas - use this to keep track of assignments
  • Ask parents if you can download Canopy at home - link on > Computer Science.  Will help you keep up with assignments.
  • Quiz 1.3 on Friday.  Mastery.  Will provide a practice quiz.
  • Quiz 1.3.6 tomorrow for 3rd hour. 
Process improvements
  • # Your submission for this activity should include (in this order):
    # Activity 1.3.7 fullName1 fullName2  (include both partners)
    # 1. Your Python code copied from the code editor (top) window
    # 2. Conclusions: questions and answers.  Thoughtful & complete, revised after class discussion.
    # 3. Your Python session copied from the Python window.  Include answers to questions as comments.
  • Create a text file in your repository for each activity
           Put both your names on the first line of the file: 1.3.6 Alicia Smith and Alison Jones
           Copy and paste your Python code into the text file if specified
           Copy and paste your Python session into the text file if specified.  Don't use %logstart.
           Type your complete and thoughtful conclusions into the log file.
           >>Correct or improve your conclusions during the class discussion. 
                    Conclusions will be graded for correctness.
  • Upload your text file to your Google drive repository
  • Copy and paste your text file into the text input pane for the assignment
Review of 1.3 topics
  • Review of 1.3 topics to date: variables, data structures (sequences), 
  • Review conclusions to 1.3.4.  Nested if-elif-else: how many blocks are actually executed?
  • Discuss Conclusion 1 from 1.3.5.  How many characters in this sentence?
1.3.7 For loops
  • New partners
  • 1.3.7 - See instructions for submission
Homework: Finish Key terms through 'int'

Friday, February 12, 2016

February 12, 2016

Objective: Use sequence data types to build a text-based Blackjack game in Python

  • Download Blackjack starter code
          Go to > Computer Science > Resources.  
          Right-click  Use Save link as to save it to your repository.
          Open the file in the Canopy editor.
  • Introduce Blackjack extra credit project.  Due in 2 weeks - Feb 26.
  • Finish 1.3.6 and submit
  • Quiz 1.3.6
  • Work on Blackjack project
Over break (optional)
  • Research the rules to Blackjack
  • Work on enhancing the starter program for extra credit

Thursday, February 11, 2016

February 11, 2016

Objective: Use lists and tuples in Python

  • Notebook N21 - data types in Python
  • PLTW survey
  • 1.3.6
  • Review activity files 1.3.2 - 1.3.6, focusing on data types and conversions between data types.

Tuesday, February 9, 2016

February 10, 2016

IEEE 754 double-precision binary floating-point format: binary64 (Wikipedia)

By Codekaizen - Own work, GFDL,

Objective:  Use strings,  lists and tuples in Python (sequences or iterables)

  • What is a data type?
  • Native data types vs. user-defined data types
  • Review conclusions to 1.3.4
  • Do 1.3.5: Strings in Python
Homework: Finish 1.3.5 (due tonight)

Friday: Quiz on 1.3.2 - 1.3.6: Data and type conversion types in Python

February 9, 2016

Objective: Use strings in Python

  • Talk to pairs about incomplete App Inventor projects
  • Brainstorm session on words for recruiting posters
  • Finish 1.3.4 - Nested Branching an Input
  • Start 1.3.5 - Strings
Homework: Finish 1.3.4 Conclusions.  Submit 1.3.4 (due today).

Sunday, February 7, 2016

February 8, 2016

Objective: Branching and iteration in Python

  • Calendar
  • Discuss conclusions from 1.3.3
  • Discuss flow charts: see example below
  • Resubmit 1.3.2 & 1.3.3 by copying log file into the text input box (sorry!)
  • Do 1.3.4.  Turn on logging.  Copy your log file into the text input box for 1.3.4. 
  • Pictures for Computer Science posters
Flow chart example:

Thursday, February 4, 2016

February 5, 2016

Objective:  Perform branching and output in Python

  • Show me your Scrum plans for the App Inventor project if you haven't already done so
  • Finish 1.3.3 and submit your .log file
  • Pictures for CS posters

February 4, 2016

Objective:  Write function definitions and conditions in Python

  • Finish 1.3.2 and submit the .log file
  • Show me your Scrum plans for the App Inventor project if you haven't already done so
  • Start 1.3.3

Wednesday, February 3, 2016

February 3, 2016

Objective: Explore Boolean expressions, branching, and output in Python

Challenge: Use Google to find documentation on how to append to an existing log file in iPython.

  • Finish and submit 1.3.2.  Append to your exiting log file.  Include answers to questions as comments.  You need to submit a file with a .log extension.
  •  Start 1.3.3 - due tomorrow.
  • Take pictures for recruiting posters

Monday, February 1, 2016

February 2, 2016

Objective: Introduce variables in Python and the Canopy IDE

  • Finish project presentations
  • Work on Activity 1.3.2
  • Finish checking Scrum plans