Python Learning
5.92K subscribers
461 photos
1 video
65 files
109 links
Python Coding resources, Cheat Sheets & Quizzes! πŸ§‘β€πŸ’»

Free courses: @bigdataspecialist

@datascience_bds
@github_repositories_bds
@coding_interview_preparation
@tech_news_bds

DMCA: @disclosure_bds

Contact: @mldatascientist
Download Telegram
What will be the output of the following Python code if a=10 and b =20?
Anonymous Quiz
51%
10 20
10%
10 10
22%
20 10
17%
20 20
πŸ‘4
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.
What is the two’s complement of -44?
Anonymous Quiz
19%
1011011
48%
11010100
21%
11101011
12%
10110011
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.
What will be the output of the following Python expression?

~100?
Anonymous Quiz
21%
101
27%
-101
31%
100
21%
-100
πŸ”₯4
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.
πŸ‘7
What will be the output of the following Python code snippet?

['hello', 'morning'][bool('')]
Anonymous Quiz
31%
error
46%
no output
18%
hello
4%
morning
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
πŸ‘4😁1
What will be the output of the following Python code?
Anonymous Quiz
24%
pass
55%
true
12%
false
10%
error
πŸ“š 9 must-have Python developer tools.

1. PyCharm IDE

2. Jupyter notebook

3. Keras

4. Pip Package

5. Python Anywhere

6. Scikit-Learn

7. Sphinx

8. Selenium

9. Sublime Text
πŸ‘6😁2❀1
What will be the output of the following Python code?
Anonymous Quiz
17%
error
12%
hello
52%
good
19%
bad
πŸ‘2
71 Python projects with source code .pdf
42 KB
71 Python projects with source code
What will be the output of the following Python code snippet?

not(10<20) and not(10>30)
Anonymous Quiz
24%
true
64%
false
8%
error
5%
no output
πŸ‘2
🐍 Python Telegram Chat Bot: Create Your Own in Minutes Using telegram-bot --upgrade Library
🐍

πŸŽ₯ YouTube Video: 
https://youtu.be/ZfWHcvEFknk

πŸ”— Source Code:
https://www.samcodehub.com/Bot/bot.html

Description:
Learn how to create your own Telegram Chat Bot using Python and the telegram-bot --upgrade library. Our beginner's guide will show you how to build a bot in minutes. 

#Python #Programming #OpenSource #Project #SourceCode #TelegramBot #ChatBot
πŸ‘2
What will be the output of the following Python code snippet?
Anonymous Quiz
41%
00000hi
16%
000hi
14%
hi000
28%
error
😁2