110
Announcements
110 Announcements Announcements - Houses How-to use Zoom for - - PowerPoint PPT Presentation
110 Announcements Announcements - Houses How-to use Zoom for Office-hours Video Posted on Course Site We will be doing house zooms today! Join yours via Sakai > Postem Password: comp110! Additionally, houses have setup GroupMes
Announcements
Announcements - Houses
Great work on EX01!
How-to Work on Exercises and Projects
In the words of a peer doing CS right...
"Hi everyone stressing, I also was super lost and played trial and error for four hours but I got it, [..] so don't stress too much! I went online and read what each function meant and looked at examples and wrote out my steps. I wrote out the math for some because I found an error in my arithmetic. What also helped me was making a separate file to run things line by line to better pinpoint the issue."
5YES!!!!! THIS IS HOW COMPUTER SCIENCE IS DONE.
How-to Get Help when Stuck
by e-mailing both of your house head TAs
Announcements - EX02
Example Setup
1. Open your COMP110 Workspace
2. Open the File Explorer Pane
3. Create a new Python module in lessons directory
4. Reproduce the program to the right. Be sure to indent the last three lines by one tab! 5. Begin a python REPL and try the following command:
>>> from lessons.ls08_functions import square >>> square(4.0) 16.0 >>> square(5.0) 25.0 >>> quit()"""Practice defining functions!""" def square(x: float) -> float: """Returns the parameter value squared.""" squared_value: float = x ** 2 return squared_value
Done? Respond to the questions