Skip to content

Umisalma848/python-Basics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐍 Python Basics Repository

Welcome to my Python Basics repository! This collection contains fundamental Python concepts and examples that I've learned and practiced. Perfect for beginners looking to understand core Python programming concepts.

📚 What's Inside

This repository covers essential Python topics with practical examples and code demonstrations.

🔤 Basic Syntax & Data Types

  • string.py - String operations and methods
  • string_slicing.py - String slicing techniques
  • operatin_string.py - Advanced string operations
  • fstring.py - F-string formatting
  • typecasting.py - Type conversion examples

📋 Data Structures

  • lists.py - List basics and operations
  • list_method.py - List methods and functions
  • tuple.py - Tuple fundamentals
  • tuple_method.py - Tuple operations
  • dictonary.py - Dictionary basics
  • dictionary_method.py - Dictionary methods
  • sets.py - Set operations
  • union_set.py - Set union operations
  • list_tuple_dic.py - Comparison of data structures

🔄 Control Flow

  • if_else.py - Conditional statements
  • short_hand_if -else.py - Ternary operators
  • match_case.py - Match-case statements (Python 3.10+)
  • loops.py - For and while loops
  • while_loop.py - While loop examples
  • loops_with_else.py - Loop-else constructs
  • break_and _continues.py - Break and continue statements

⚙️ Functions

  • define-functon.py - Function definitions
  • fun_arguement.py - Function arguments
  • lambda_function.py - Lambda functions
  • local_vs_global.py - Variable scope
  • recursion.py - Recursive functions
  • docstring.py - Function documentation

🔧 Advanced Concepts

  • map_filter_reduce.py - Functional programming concepts
  • is-vs_== operator.py - Identity vs equality operators
  • input_function.py - User input handling

🚨 Error Handling

  • try-except.py - Exception handling
  • raise *custom *error.py - Custom exceptions
  • finally_clause.py - Finally clause usage

🎨 Projects & Patterns

  • project1.py - Practice project 1
  • project1.1.py - Practice project 1.1
  • starpattern.py - Star pattern programs
  • demo.py - Demonstration code
  • main.py - Main execution file

🚀 Getting Started

  1. Clone the repository:

    git clone https://github.com/yourusername/python-basics.git
    cd python-basics
  2. Run any Python file:

    python filename.py
  3. Explore and learn:

    • Start with basic concepts like string.py and if_else.py
    • Progress to data structures like lists.py and dictonary.py
    • Practice with control flow examples in loops.py
    • Challenge yourself with projects and advanced concepts

📖 Learning Path

For Complete Beginners:

  1. string.pytypecasting.pyinput_function.py
  2. if_else.pyloops.pybreak_and _continues.py
  3. lists.pytuple.pydictonary.py

For Intermediate Learners:

  1. define-functon.pylambda_function.pyrecursion.py
  2. try-except.pyraise *custom *error.py
  3. map_filter_reduce.py → Advanced projects

🎯 Key Topics Covered

  • Variables and Data Types
  • String Manipulation
  • Lists, Tuples, Dictionaries, and Sets
  • Conditional Statements
  • Loops and Iterations
  • Functions and Scope
  • Error Handling
  • Object-Oriented Programming Basics
  • File Operations
  • Functional Programming Concepts

💡 How to Use This Repository

  • Each file focuses on a specific Python concept
  • Code is well-commented for easy understanding
  • Examples progress from basic to more complex
  • Practice by modifying and running the code
  • Use as a reference while learning Python

🤝 Contributing

Feel free to:

  • Suggest improvements
  • Add more examples
  • Fix any issues you find
  • Share your own Python learning resources

📝 Notes

  • All code is written in Python 3.x
  • Some files may require specific Python versions (noted in comments)
  • tempCodeRunnerFile.py is a temporary file used by code runners

📞 Contact

If you have any questions or suggestions, feel free to reach out!


Happy Coding! 🎉

"The best way to learn Python is by practicing. Each file in this repository is a step towards mastering Python programming."

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages