Day 37 of Python Topic: Protected Members in Python (OOP) Today I learned about protected attributes in Python using a single underscore (_). 🔹 What are Protected Members? Variables or methods prefixed with _ Meant to be accessed within the class and its subclasses Still accessible outside the class, but not recommended 🔹 Key Point: Python doesn’t enforce access control strictly. Protected members are based on developer convention, not restriction. #51dayofPython #Python #FullstackDeveloper
Protected Members in Python: Understanding Single Underscore Convention
More Relevant Posts
-
Day 16 of 100 Days of Python — If-Else Statements Today I learned about if-else statements, a core concept that allows Python programs to make decisions based on conditions. If-Else in Simple Terms: "if - Executes a block of code when a condition is true." "else - Executes when the condition is false." "elif - Handles additional conditions when there is more than one check." Conditions use operators like: >, <, ==, !=, >=, <=. Key Insight: If-else brings logic and decision-making into Python programs. #100DaysOfPython #PythonBasics #LearningJourney #IfElse #ControlFlow #LearnInPublic
To view or add a comment, sign in
-
-
🚀 Daily Python Practice – Day 1 Today, I built a simple Python program to add two numbers. The program includes: • Adding numbers using predefined variables • Taking user input and calculating the sum dynamically This helped me practice: ✔ Basic syntax ✔ Variables ✔ User input handling I’m focusing on strengthening my Python fundamentals by building small programs consistently. Learning step by step. More coming soon. 💪 https://x.com/AzanShaikh29 https://lnkd.in/gxrjDb93 #Python #LearningInPublic #ProgrammingBasics #BeginnerDeveloper #Consistency
To view or add a comment, sign in
-
How to Scrape GitHub with Python 🐍 GitHub is one of the most convenient sources of public data for developers: trending repositories, stars, languages, project activity, and much more. In this article, we demonstrated how to collect this data in practice using Python with requests and BeautifulSoup, how to use GitHub Trending filters, and why using proxies helps reduce the risk of blocks and access errors. If you want to learn how to scrape GitHub with Python, follow the link 👉🏼https://lnkd.in/d_k9-g7Q #WebScraping #Python #GitHub #DataImpulse #Proxies
To view or add a comment, sign in
-
-
🎥 Day 10 of My Python Learning Journey! Hi everyone, Today I talked about Python identifiers — what they are, why we use them, and some important rules and restrictions for creating identifiers. Understanding identifiers helps us write correct and readable Python code. I explained everything in a simple, beginner-friendly way. Thank you for watching and supporting my learning journey! 🚀 #Python #Django #Mysql #Pandas #Selvacodes
To view or add a comment, sign in
-
Python Starters Daily Nugget Exploring Python's Built-in Functions len() sum() max() range() enumerate() These save you some lines of code. So, knowing what is built-in makes your code efficient. Follow the Python 🐍 Starters Hub: WhatsApp: https://lnkd.in/dbjAFv52 LinkedIn: https://lnkd.in/dkJE3tZq
To view or add a comment, sign in
-
so true! I will always rely on Java to do any math routines then call those classes from whatever. But this is true for pure loops only since Python's math libraries (PyTorch/NumPy) are just C++ wrappers. If you vectorize that Leibniz routine in PyTorch, you're running on optimized C++/CUDA kernels that will likely leave a standard JVM loop in the dust. Python is just the orchestrator
Python is **MALWARE**!! C# is 380 times faster (and more scalable) than Python!! 😁
To view or add a comment, sign in
-
-
Why does Python use 0-based indexing, and why should we care? Today I learned the importance of indexing in Python and how it helps us access elements efficiently. Python follows 0-based indexing, which means the first element starts at index 0. This design comes from memory addressing, where the index represents the offset from the starting memory location. I also understood the difference between mutable and immutable data types: 🔹 Mutable (can be changed): list, dictionary, set 🔹 Immutable (cannot be changed): int, float, string, tuple Knowing this helps avoid unexpected bugs and improves code performance and reliability. Understanding these basics makes Python code more predictable and interview-ready. #Python #ProgrammingBasics #LearningJourney #SoftwareDevelopment #10000Coders
To view or add a comment, sign in
-
🎥 Day 11 of My Python Learning Journey! Hi everyone, Today I talked about Python type conversion — what it is, why we use it, and the different types of type conversion with simple examples. Understanding type conversion helps us work with different data types correctly in Python programs. I explained everything in a clear and beginner-friendly way. Thank you for watching and supporting my learning journey! 🚀 #Python #Pandas #Django #Mysql #Selvacodes
To view or add a comment, sign in
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development