Back to Python - Function, Module, Library. Wait... We meant standard library..

- https://docs.python.org/3/library/index.html
- Python comes with all the usual operators, including <, >, < =, > =, = =, !=, as well as the = assignment operator.
---
Let's explore standard library and data types:
# IDE / IDLE: Integrated Development Environment # REPL: Read, eval, print, loop # F5: Run code # Phython is an interpreter language # Collected functins makes up modules, and lots of modules makes up library # import sys // module # print(sys.version) # sys.platform # import os // module # os.getcwd() , <-- Method # os.environ <-- What is dot notation? # import datetime # datetime.date.today() # datetime.date.today().month # datetime.date.today().year / day # datetime.date.isoformat(datetime.date.today()) // what is ISO? # import time #time.strftime("%H:%M") #'10:53' # time.strftime("%A %p") / day of the week and AM / PM?
from datetime import datetime odds = [1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 49, 51, 53, 55, 57, 79]
right_this_minute = datetime.today().minute
if right_this_minute in odds: print("This minute seems a little odd.") else: print("Not an odd minute")