This repo is a collection of python3 basic exercises.
The exercises are collected from various resources around the web.
If you are serious about learning python 3 then you probably will find these exercises very helpful.
I appreciate any suggestion to improve this repository 😃.
You need to make sure that you have python 3 installed on your computer.
To check if you already have python 3 in your computer, open a terminal (win + r
then type cmd
).
Now type the following command: python --version
.
You should see something like this.
I highly recommend that you install the anaconda distribution from this site
If you are using ubuntu chances are you have already python 3 installed.
To check if you already have python 3 in your computer, open a terminal (ctr + alt + t
).
Now type the following command: python3 --version
.
If you are using ubuntu 16.10 or newer install python 3 with the following command:
sudo apt-get update
sudo apt-get install python3.6
I highly recommend that you install the anaconda distribution from here
In order to complete the exercises you need to pass all the tests successfully.
Implement each function
according to the specification on top of it's definition.
For example here I implement the function donuts
:
To check that the code you write is correct and behave as expected, you need to pass all the tests (written at the bottom of each file). For example here I run the test for the code I wrote for function donuts
:
You see that my implementation of the function donuts
failed at the first 2 test cases and succeded at the last 2 test cases.