Python Learning
Open in 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
Show more5 793
Subscribers
+324 hours
-197 days
-5130 days
Posts Archive
5 793
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 793
What will be the output of the following Python code snippet?
['hello', 'morning'][bool('')]
5 793
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 793
What will be the output of the following Python expression?
~100?
5 793
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 793
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 793
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 793
What will be the output of the following Python code if a=10 and b =20?
5 793
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 793
Which of the following expressions can be used to multiply a given number βaβ by 4?
5 793
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 793
What will be the value of the following Python expression?
bin(10-2)+bin(12^4)
5 793
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 793
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 793
What will be the output of the following Python expression?
4^12
5 793
python-training
Python training for business analysts and traders. This is designed to be an introduction to numerical computing and data visualization in Python. It is not designed to be a complete course in Computer Science or programming, but rather a motivational demonstration of how relatively complex topics can be accessible even to those without formal progamming backgrounds.
Creator: J.P. Morgan
Stars: βοΈ 2.9k
Forked by: 709
GitHub repo: https://github.com/jpmorganchase/python-training
#python #training
ββββββββββββββ
Join @github_repositories_bds for more cool repositories.
*This channel belongs to @bigdataspecialist group
5 793
Bitwise _________ gives 1 if either of the bits is 1 and 0 when both of the bits are 1.
