Starting Python

python
Author
Published

January 18, 2024

Modified

April 8, 2024

This is how python works

Arithmetic & Math

8+5
13
2084 -          1985
99

“Variables” and “Assignment”

fruehwald_age = 2084 - 1985
TitleCase
snake_case
camelCase
fruehwald_age * 12
1188

Variables vs Strings

"fruehwald_age"
'fruehwald_age'
'fruehwald_age'
'fruehwald_age'
john_favorite_color = "purple"
John_favorite_color
NameError: name 'John_favorite_color' is not defined

Importing

import re
re.search()
# import pathlib
# pathlib.Path()

from pathlib import Path
Path()
PosixPath('.')
Back to top

Reuse

CC-BY-SA 4.0

Citation

BibTeX citation:
@online{fruehwald2024,
  author = {Fruehwald, Josef},
  title = {Starting {Python}},
  date = {2024-01-18},
  url = {https://lin511-2024.github.io/notes/in_class/00_python.html},
  langid = {en}
}
For attribution, please cite this work as:
Fruehwald, Josef. 2024. “Starting Python.” January 18, 2024. https://lin511-2024.github.io/notes/in_class/00_python.html.