Skip to content

devangvyas-it/PyTutorials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Tutorials

🌐 Connect with me

If you find these tutorials helpful, please don't forget to like and subscribe to the channel!

Welcome to the Python Tutorials repository! This collection of scripts and examples is designed to help you learn and practice various Python programming concepts, ranging from the absolute basics to more advanced topics.

Repository Structure

  • Basics/: Contains fundamental Python programming concepts and examples.
    • dictionary_sample.py: Examples of creating, reading, updating, and deleting items in Python dictionaries.
    • fibonacci.py: Example demonstrating how to generate the Fibonacci sequence.
  • OOP/: Object-Oriented Programming concepts and examples.
    • class_object.py: Describes the fundamentals of OOP by introducing classes, creating objects, and using methods.
  • Tips/: Contains quick Python tips and tricks for writing more efficient and Pythonic code.
    • check_duplicates.py: Example demonstrating how to check for duplicates in a list using loops and sets.
    • dict_merge.py: Example demonstrating three different ways to merge dictionaries in Python.
    • fstring_4_examples.py: Four useful examples of f-string formatting in Python.
    • lambda_function.py: Example demonstrating how to use lambda functions in Python for quick, one-line operations.
    • list_comprehension.py: Example demonstrating how to use list comprehension for cleaner and more efficient loops.
    • list_reverse.py: Example demonstrating how to reverse a list in Python using slice notation.
    • pandas_groupby.py: Example demonstrating how to calculate aggregates using vanilla Python vs the Pandas groupby method.
    • zip_example.py: Example demonstrating how to iterate over multiple lists simultaneously using zip and zip_longest.

Getting Started

To run these examples locally, ensure you have Python 3.x installed on your system.

  1. Clone this repository to your local machine:
    git clone <repository-url>
  2. Navigate to the directory of the script you want to run:
    cd Basics
  3. Execute the script using Python:
    python dictionary_sample.py

Happy Coding!

About

Python Tutorials

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages