Common Computer Science References
At the end of this lesson, you will be able to:
write and run your first program in Python
review logging into GitHub
starting up your Codespace IDE
what is the Python programming language (see video "The Story of Python")
interpreted language (i.e. interpreter executes the code line by line, one line at a time)
cross-platform language
free and open source
and many others, ...
go over the history of "Hello World!" program
go over how to use an IDE to create a Python program
see files and folders, (see image below: ↓)
ensure you are in the correct location!
look, no special characters and no spaces!!!
create a Python document
saving and naming a Python files (hello_world.py)
always create and name the file first, so the IDE knows the language, so it can provide help!
remember to use "good laziness" and let the computer help you with Code Completion
run your program
do demo of "Hello, World!" program (see video "Hello, World! in Python using Codespaces" : ↓))
go over how to run your program
python ./hello_world.py
do demo of how to submit daily assignments
just screenshot the "terminal" when showing me your running program, NOT the entire screen
copy in code and then paste in your code using "plain text"
then "color" it with the Google Docs Add-on "Code Blocks"
ENSURE you use VS2015 theme ONLY and the correct language
see Jane Smith example below: ↓
create python file in your Codespace IDE
create the "Hello World!" program for yourself (see terminal & image below: ↓)
python ./hello_world.py
create the "Address program" (see terminal & image below: ↓):
use the provided Google Doc to submit your work
take a screenshot of your terminal output and add it to the "screenshots" section
python ./address.py
ensure I can see all the output
paste the code into the "code" section
ensure you "color" it correctly
use CodeBlocks
see Jane Smith model solution (see file below: ↓)
create "address program" in another language:
once you get it working, add it under today's submission
see screenshot below: ↓
compile and run your program
gcc ./Address.c -o Address
./Address
NOTE: You can turn on "Closed Captions" to see a printout of what is being said by selecting the "CC" button.
You can also have it translate the closed captions by going to "Settings, Subtitles/CC, Auto-translate" and then pick your prefered language.