/Python101

Some sample code to kickstart your python journey.

Primary LanguagePythonMIT LicenseMIT

Python code snippets

Description

Some sample code to kickstart your python journey..

Setup Instructions:

1. Clone the repository

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

Covered topics

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

6.Run the scripts

To run the python scripts on your machine,

python3 <script_name>.py

Running Tests

To run tests;

Languages Used

  • Python

Licence

License

Collaboration Information

  • Clone the repository

  • Make changes and write tests

  • Push changes to github

  • Create a pull request

Contact me

Reach me on:

Email: waichigovick@gmail.com

Twitter: @kamau_vick