Python Learning
前往频道在 Telegram
Python learning resources Beginner to advanced Python guides, cheatsheets, books and projects. For data science, backend and automation. Join 👉 https://rebrand.ly/bigdatachannels DMCA: @disclosure_bds Contact: @mldatascientist
显示更多5 842
订阅者
-624 小时
-57 天
-1230 天
帖子存档
5 843
Polymorphism in python 🕳
This allows us to use a single interface for different data types or classes. We can achieve this through method overriding, where a subclass provides a different implementation for a method defined in its parent class.
Let's understand with example -☝️
5 843
What will be the output of the following Python code snippet?
['hello', 'morning'][bool('')]
5 843
Abstraction in Python 🎭
Here's an example -------------------☝️
This concept focuses on exposing only essential information to the outside world while hiding implementation details.
We use abstract classes and methods to define a common interface.
At this point if Abstraction and Encapsulation confuse you! 👇
Abstraction conceals the implementation details, but doesn't hide the data itself.
On the other hand, Encapsulation hides the data and restricts unwanted use from external sources.
5 843
What will be the output of the following Python expression?
~100?
5 843
Encapsulation in Python 🚡
(Here's an example) ---------- ☝️
Encapsulation helps to bundle data and methods inside a class, restricting direct access to certain attributes and methods.
We use private attributes/methods (with a _ or __ prefix) to achieve this.
5 843
Do you enjoy reading this channel?
Perhaps you have thought about placing ads on it?
To do this, follow three simple steps:
1) Sign up: https://telega.io/c/python_bds
2) Top up the balance in a convenient way
3) Create an advertising post
If the topic of your post fits our channel, we will publish it with pleasure.
5 843
Inheritance in Python 🪢
check this out --------------------☝️
Let's say we want to create an Electric car & don't want to define all the properties and methods of the basic Car class.
Inheritance helps us to inherit all the properties/methods of parent class & add new ones or override existing.
5 843
What will be the output of the following Python code if a=10 and b =20?
5 843
Class in Python 🦾
Let's define a class Car & create it's Object ☝️
A class is like a blueprint for creating objects.
It defines a set of properties & functions (methods) that will be common to all objects created from the class.
5 843
Which of the following expressions can be used to multiply a given number ‘a’ by 4?
5 843
Object in Python 🚘
Just look around, everything you see can be treated as an object.
For instance a Car, Dog, your Laptop are all objects.
An Object can be defined using 2 things:
- Properties: that describe an object
- Behaviour: the functions that an object can perform
...⬇️
For example, a Car is an object that has properties such as color & model, and behaviours such as accelerating, braking & turning.
But, how do we create these objects❓🤔
5 843
What will be the value of the following Python expression?
bin(10-2)+bin(12^4)
5 843
15 Best Project Ideas for Python : 🐍
🚀 Beginner Level:
1. Simple Calculator
2. To-Do List
3. Number Guessing Game
4. Dice Rolling Simulator
5. Word Counter
🌟 Intermediate Level:
6. Weather App
7. URL Shortener
8. Movie Recommender System
9. Chatbot
10. Image Caption Generator
🌌 Advanced Level:
11. Stock Market Analysis
12. Autonomous Drone Control
13. Music Genre Classification
14. Real-Time Object Detection
15. Natural Language Processing (NLP) Sentiment Analysis
5 843
Any odd number on being AND-ed with ________ always gives 1. Hint: Any even number on being AND-ed with this value always gives 0.
5 843
What will be the output of the following Python expression?
4^12
现已上线!2025 年 Telegram 研究 — 年度关键洞察 
