Welcome Back!
Please update your name:
First name and last initial, pronouns
Agenda
5:00 Welcome! attendance question
5:05 Dr. Emre Yildizci
5:45 Break
5:55 Pygame! And other options for projects
6: 25 Celebrate the Badges!
6:30 Office Hours
Attendance Question
Some norms for a pleasant video call:
Please answer one at a time:
What is your favorite particle?
Dr. Emre Yildizci
Notes
Muons have a longer lifetime than tau particles (on the order of microseconds), and it doesn’t lose much energy. So, it’s very interesting for experiments.
Muon effects:
THANK YOU, Dr. Yildizci!
Break!
Engineering Design Challenge
Code a tool to help others understand IceCube
Designing a new tool
01
02
03
04
DESIGN COMMUNICATION
DESIGN OPTIMIZATION
PROBLEM DEFINITION
DESIGN EXPLORATION
Your great ideas!
Images!
Basics for images in Python: https://www.c-sharpcorner.com/blogs/basics-for-displaying-image-in-tkinter-python
Example of calling in an image in Python https://codehs.com/sandbox/id/image-viewer-9Poadx
Building a sprite in Pygame: https://docs.replit.com/tutorials/07-building-a-game-with-pygame
User Interface
Graphic User Interface
GUIs in Python
Python GUI programming with Tkinter: https://realpython.com/python-gui-tkinter/
Examples for Pygame in replit:
Space visualization https://replit.com/join/cepgbdkgtl-kshirey2022
Building a game with Pygame and Replit https://docs.replit.com/tutorials/07-building-a-game-with-pygame
Embed a Repl.it https://docs.replit.com/hosting/embedding-repls
Examples in Repl.it
A whole game from scratch in Pygame
Last week you did “Week 5. Operators” in CodeHS.com
Variables Badge!
Grid World Badge!
Python Arithmetic Operators
Relational Operators
Operator | Description | Example |
== | Checks if the values of two operands are equal or not, if yes then condition becomes true. | (A == B) is not true. |
!= | Checks if the values of two operands are equal or not, if values are not equal then condition becomes true. | (A != B) is true. |
> | Checks if the value of left operand is greater than the value of right operand, if yes then condition becomes true. | (A > B) is not true. |
< | Checks if the value of left operand is less than the value of right operand, if yes then condition becomes true. | (A < B) is true. |
>= (or ≥) | Checks if the value of left operand is greater than or equal to the value of right operand, if yes then condition becomes true. | (A >= B) is not true. |
<= (or ≤) | Checks if the value of left operand is less than or equal to the value of right operand, if yes then condition becomes true. | (A <= B) is true. |
Control Structures
Make Tracy do the following actions three times: go forward, change colors, and then turn around.
Pop quiz:
Write this as Python script
Pop quiz! What will this draw?
Pop Quiz!
To do this week:
CodeHS.com
Identify a starting place from a recent codehs.com assignment.
Design Challenge assignments
Research for useful Python tutorials. Add them to your line in the spreadsheet.