Asset-V1 LehighX+Python100+3T2023+type@asset+block@Module 2 Coding Background
Asset-V1 LehighX+Python100+3T2023+type@asset+block@Module 2 Coding Background
Fundamentals
Module 2 – Coding Background
1
What is all this stuff?
• What exactly is code?
• Where to store your code?
• What is Python?
• What is Anaconda?
• What is Jupyter Lab?
2
What is code (coding) anyway?
• Code = Instructions executed by the computer
• Coding (Programming) = Writing instructions for a computer
• Program = All the lines of code together
• Code is written in a programming language
○ specifies the words and symbols
○ employs a set of rules that dictate how the words and symbols can be put together
(syntax)
• Many programming languages exist
3
Where do I write my code?
• Any editor can (theoretically) work
• The code you write is called source code
• Most programmers use an Integrated Development Environment (IDE)
4
Where should you store your code?
• Make a folder in a place that is:
○ Easy to remember
○ Gets backed up periodically
5
What is it with these snakes?
Python
Anaconda
Jupyter Lab and Jupyter Notebooks
6
What is Python?
• A programming language
• Developed by Guido van Rossum of the National
Research Institute for Mathematics and Computer
Science in Amsterdam
• Released in 1991
• Van Rossum was reading Monty Python's Flying Circus
(BBC comedy series from the 1970s)
7
Why Python?
• Open source, free and widely available
• Arguably easier to learn and read
• Many libraries freely available
• Poplar for building small simple scripts (programs)
• Also capable of developing complex apps
• Very popular in AI due to analytics functions and libraries
• Widely used in analytical finance
• Extensive job market for Python programmers
8
What’s Anaconda?
• It is a way to get Python (plus more) in an easy to use package
• Maintained by Anaconda Inc.
• Includes many tools and libraries
• Freely available
• Manages your Python code
• Contains Jupyter Lab
9
What are Jupyter Notebooks and Jupyter Lab?
• Jupyter Lab is a web-based interactive development
environment for notebooks, code and data
• Jupyter Notebooks are document that contain:
○ Code
○ Rich text elements (paragraphs, figures, etc.) that help explain
the code
11
Thank You!
12
13