/py360-2021

code examples for 420-360 Winter 2022

Primary LanguageJupyter NotebookApache License 2.0Apache-2.0

360-420-DW 2022 Dawson College

This workspace is for all code used for teaching Introductory Python to Science students

Code associated with lectures

You can read the files directly from the git server interface, you can copy them individually, use the raw format if you do so. Or you can download everything, on the main page there is a button to download as a zip file: image

Dev set up

use repl.it

Follow the teacher's instructions to create an account

Own computer (optional)

  • Install python choose the latest of v3
  • Use any text editor, I really like vscode on Windows or Linux so I use that as an editor

lecture slides (for reference)

onedrive shared material shared by the teacher, lecture slides, assignments, etc.

running the code samples

using an online ide (ex repl.it or other)

Copy the raw code to your ide, then run it.

Note: the teacher has been using https://www.online-python.com/ for some code in class.

Own computer

Python is interpreted so it checks your code & runs it (provided you have installed pythn on your system see Dev set up) For example I have a file hello.py:

#  My first program
#  PCampbell
#  2022-01-12
print("hello world!")

Process & run it:

tricia@dc140:~/tmp$ python hello.py
hello world!

License

This code is licensed under Apache 2.0 The code here is written as examples and is stripped down in order to illustrate specific objectives for teaching. Therefore there may be missing components that would normally be included.

That being said any mistakes are my own, please email me at pcampbell . edu @ gmail . com should you wish to notify me of a mistake.