What is this repository about? This repository contains some simple python programs extending functionality of classes, list comprehensions, functions etc.
- breaktimer.py - Opens youtube, plays your favourite videos in your breaks. This programs interacts with web browser.
- decorators.py,decorator_example.py - Shows how to use decorators
- even_or_odd.py - Checks if a number is even or odd. Shows use of fucntion & classes.
- fib_series.py - Implements fibonnaci series & shows use of fucntion & classes.
- fizzbuzz.py - Check if a number is divisible by 3, 5 or both.
- list_comprehensions.py, generators.py - Uses list comprehension
- iterations.py - Iterating through dictionary
- mindstorms.py - Draws shapes on the screen
- profanity_alert.py - Check if words are profane or not, alert if it is. Uses functions.
- rename.py - Renames files in folders
- send_messages.py - Uses twillio package to send messages to phone
- object_oriented.py - Implements object oriented concepts
- simple_calculator.py - Implements calculator functions using object oriented concepts
For running the code, you may follow the below steps:
- Run VSCode (or any other code editor) from Anaconda Command Prompt
- Make sure you are using a dedicated virtual environment and activate it, sample -
'''code conda create -n myenv python=3.7.3 '''
- Install or upgrade all packages from requirements.txt
conda install --file requirements.txt or pip install -r requirements.txt
You may need to add the full path of requirements.txt file depending on your pwd
Important links: