Table of Contents
Preface
1
Python Fundamentals â Math, Strings, Conditionals, and Loops
Overview
Introduction
Technical requirements
Opening a Jupyter Notebook
Python as a calculator
Standard math operations
Basic math operations
Order of operations
Exercise 1 â getting to know the order of operations
Python concept â spacing
Number types â integers and floats
Exercise 2 â integer and float types
Complex number types
Errors in Python
Variable assignment
Exercise 3 â assigning variables
Casting â changing types
Activity 1 â assigning values to variables
Variable names
Exercise 4 â naming variables
Multiple variables
Exercise 5 â assigning multiple variables
Comments
Exercise 6 â comments in Python
Docstrings
Activity 2 ...
Get The Python Workshop - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.