Introduction to Python and Programming
Table of Contents
Key points
- Course given in English
- Introduction to programming and Python for non computer sciences students (ESSEC Business School)
- Evaluated using two hackernights with topics such as Super Heros or Pokémons
- No requirements needed
- Complete original content
Description
Introduction to programming (using Python 3). Courses made for ESSEC Business School (Global BBA).
In this course you will learn the basics of programming and programming with Python. Elementary notions will be displayed in jupyter notebooks. To use these files you will need to either:
- Install python locally (following the instructions below)
- Visit the interactive jupyter supports (made for online teaching without any installation required - but only available during courses - )
Please visit this link for interactive supports : https://mybinder.org/v2/gh/gguibon/essec-python-1/master?filepath=python-1.ipynb
Install local Python environnement
At home you may want to use Python locally. Please follow these steps:
- Download the latest Python (Python3 not 2) from here: https://www.python.org/downloads/
- Install it (if you are using Ubuntu 16.04 you already have Python installed)
Start using it:
- Open terminal(unix/mac) or CommandLine(windows), type
python
orpython3
orpy
(depends on your environnement) to start an interactive python environnement - Create a file named
my_super_program.py
, typeprint('hello')
inside, and save. Execute this file by typingpython3 my_super_program.py
.
To run jupyter notebooks (.ipynb files with interactive python), please open a terminal and type:
pip install jupyter
Then run it using: jupyter notebook
Install developpement environnement
To code with ease you may need an IDE for smoother coding. I would suggest Visual Studio Code combined with the Python plugin from Microsoft (ms-python.python). For a python only IDE the best one would be PyCharm.
Here is the detailed procedure for Visual Studio Code set up from scratch:
- Download and install the latest Python (Python3, not 2! Python2 is dead) from here: https://www.python.org/downloads/
- Download and install Visual Studio Code Visual Studio Code
- Install the Python Microsoft plugin in Visual Studio Code by clicking on the extension panel :
- Once it is done you can go back to the file view
, create a new file with ‘.py’ extension (i.e. a python file such as ‘hello.py’), type
print('hello')
in it and save (Ctrl + S). - Now you can run any python file you are viewing by clicking on the button (top right). Here is an example: