Lesson 02 - chad-p/wiki-python-class GitHub Wiki
Data Types and Conditions
Variables
Jupyter Notebook - 01-Variables
Camels vs Snakes
- Camel Case
- myName
- getFunction
- Snake Case <-- Python Preferred
- my_name
- get_function
User Input
Jupyter Notebook - 02-User Input
- Remember that
input()
function always returns a data type of string. - https://www.w3schools.com/python/python_user_input.asp
String Formatting
Jupyter Notebook - 03-String Formatting
Logical Operations (Truth Tables)
Jupyter Notebook - 04-Logical Operations
NOT
/resources/images/NOT Truth Table.png
AND
/resources/images/AND Truth Table.png
OR
/resources/images/OR Truth Table.png
XOR
/resources/images/XOR Table.png
Bitwise Operators
Comparison and Mathematical Operators
Jupyter Notebook - 05-Comparison and Mathematical Operators
Type Casting
Jupyter Notebook - 06-Type Casting
Conditionals (If statements)
Jupyter Notebook - 07-Conditionals Jupyter Notebook - 011-Extended Conditionals (nested)
Data Structures
Lists and Tuples
Jupyter Notebook - 08-List and Tuples
Dictionary
Jupyter Notebook - 09-Dictionary