This page is for random information related to our learning of Python. It's a bit disorganized for now, but I will restructure as we go.
0) Python Tutorial
https://docs.python.org/3/tutorial/
1) Getting user Input
name = input("What is your name?)
This issue we had today was what I thought. According to Python.org:
"If we use a input(), the input will be a string, which we have to cast into an integer."
We do that as follows:
n = input("Please enter an integer: ") n = int(n)
OR
n = int(input("Please enter an integer: "))
2) Getting out of loops: BREAK, CONTINUE, and PASS
3) Random Integer generation
https://stackoverflow.com/questions/3996904/generate-random-integers-between-0-and-9
4) Time delay / sleep
https://stackoverflow.com/questions/510348/how-can-i-make-a-time-delay-in-python
5) Python.org Guides
Beginners Guide Wiki
https://wiki.python.org/moin/BeginnersGuide
Python FAQs
https://docs.python.org/3/faq/
All Python 3.6 Documentation
6) Harvard's Intro to Python Course
https://canvas.harvard.edu/courses/11549/assignments/syllabus
7) 040918 Loops: Other loops: While & For
INFORMATION:
7B) HW: Range
The range(n) function yields the numbers 0, 1, ... n-1, and range(a, b) returns a, a+1, ... b-1
up to but not including the last number
8) L/S Python Class resources
https://27classrooms.com/intro-to-programming/
9) Trinket.io Python Turtles
https://hourofpython.trinket.io/a-visual-introduction-to-python#/welcome/an-hour-of-code
10)