Some sample code to kickstart your python journey..
Clone the the repository by running
git clone https://github.com/jkuatdsc/Python101.git
or download a zip file of the project from github
Navigate to the project directory
cd Python101
Topic | Content |
---|---|
Introduction snippets | Variables |
Math Operators | |
String formatting | |
User inputs | |
Booleans | |
Dictionaries | |
Lists | |
Turples and sets |
Topic | Content |
---|---|
Functions and loops | if statements |
while loops | |
for loops | |
loop keywords | |
list slicing | |
set and dict comprehnsions | |
function arguments | |
functions and return values | |
lambdas, high order functions |
Topic | Content |
---|---|
OOP Concepts | intro |
classes and objects | |
param naming | |
magic methods | |
inheritance | |
@property decorator | |
@classmethod and @static decorators |
To run the python scripts on your machine,
python3 <script_name>.py
To run tests;
- Python
-
Clone the repository
-
Make changes and write tests
-
Push changes to github
-
Create a pull request
Reach me on:
Email: waichigovick@gmail.com
Twitter: @kamau_vick