Today We did
- reviewed briefly import random
- common bugs and how to fix them
- the blue line in the shell tells you hwat
- the line afterward gives a guess visually where the errori
- the final line tells you what the error is , and a written guess on how to fix it
- common errors
- syntax error (punctuation)
- indentation error (forgetting to indent the code after a for, if, else, while, etc.)
- type error (you used the wrong data type such as adding a string and a integer)
- for functions, a posistional type error might mean you did not include enough variables or too many functions for your code to work
- name error (misspelling or you forgot to create a variable name)
- also seen if you forget to import random
TEST:
In your emails, you should have gotten a quiz in the form of a google form
- Open notes/wifi, no AI
- it will be on
- data types
- for and while loops
- working with lists
- bug fixing
- how to use inputs
- how to use the random module/library
- And other things we learned throughout the classs
- If you need review or bug fixing practice
- https://www.ayclogic.com/fix-python-bugs-2/
- https://www.ayclogic.com/fixing-python-bugs/