Introduction
16.09.2022
Basics of Programming in Python is an 8-week compulsory course aimed at social science students to learn programming skills for their research.
0.25 * Weekly Quizes
0.25 * Homework Assigment
0.5 * Final Exam
The exam is very much tied to the course material,
so it is recommended to attend classes 🙃
Telegram channel
with chat -> to discuss and be informed
My email: alexpoov99@gmail.com
Every computer program interacts with very low-level components of computer - memory in bytes (0,1).
However, for the sake of convenience, time-saving and ease, this interaction has been abstracted away by multiple layers
The beauty of it is that you do not have to know much about this interaction to become a good python programmer.
This is because logical units of python are mere abstractions: objects instead of computer processor transistors and memory.
.py
file extension.py
file) is compiled into bytecode, which is later executed by Python Virtual Machine, but this process is abstracted from the developer.This means that logical units of Python programs are objects.
Objects store together the data and means to process it
Please do not antagonize functional vs. object-oriented programs, because one could be both and paradigms are not exclusive.
Because Python is very flexible, so you can make your code be both:
Python objects are dynamic because they are not strictly typed.
In languages such as Java, C, or C++, you initialize a variable with a pre-defined type.
But in Python, the type of object is determined in runtime.
In case you have any question, please, consult with it first, and only afterwards go to Google and forums like StackOverflow.
There is two extensions you need to know:
.py
is a regular Python file with your code only..ipynb
is a Python notebook, which output shows in readable format.Some places where you can edit Python files:
.ipynb
files, imo it's great for beginners)