GithubHelp home page GithubHelp logo

sonal10 / basics_of_python Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 115 KB

Basic python programs for learning purposes

License: GNU General Public License v3.0

Python 69.26% Jupyter Notebook 30.74%
oriented-concepts python-programs fucntion comprehensions decorators

basics_of_python's Introduction

Basics of Python

What is this repository about? This repository contains some simple python programs extending functionality of classes, list comprehensions, functions etc.

  1. breaktimer.py - Opens youtube, plays your favourite videos in your breaks. This programs interacts with web browser.
  2. decorators.py,decorator_example.py - Shows how to use decorators
  3. even_or_odd.py - Checks if a number is even or odd. Shows use of fucntion & classes.
  4. fib_series.py - Implements fibonnaci series & shows use of fucntion & classes.
  5. fizzbuzz.py - Check if a number is divisible by 3, 5 or both.
  6. list_comprehensions.py, generators.py - Uses list comprehension
  7. iterations.py - Iterating through dictionary
  8. mindstorms.py - Draws shapes on the screen
  9. profanity_alert.py - Check if words are profane or not, alert if it is. Uses functions.
  10. rename.py - Renames files in folders
  11. send_messages.py - Uses twillio package to send messages to phone
  12. object_oriented.py - Implements object oriented concepts
  13. simple_calculator.py - Implements calculator functions using object oriented concepts

For running the code, you may follow the below steps:

  1. Run VSCode (or any other code editor) from Anaconda Command Prompt
  2. Make sure you are using a dedicated virtual environment and activate it, sample -

'''code conda create -n myenv python=3.7.3 '''

  1. 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:

  1. Conda environment - https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html
  2. https://wiki.epfl.ch/help-git-en/how-can-i-import-an-existing-folder-into-my-repository

basics_of_python's People

Contributors

dependabot[bot] avatar sonal10 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.