Python Coding
7.51K subscribers
1.61K photos
4 videos
49 files
1.46K links
Learn Python to automate your things. We are here to support you. Ask your question

Reach us - info@clcoding.com

https://whatsapp.com/channel/0029Va5BbiT9xVJXygonSX0G
Download Telegram
What will the following code output?
a = 5
b = -a c = ~a print(a, b, c)
Anonymous Poll
23%
a = 5, b = -5, c = -6
33%
a = 5, b = -5, c = 4
15%
a = 5, b = 5, c = -6
29%
a = 5, b = -5, c = 6
2
There are two important things in Python:

1. Function
2. Classes

Python Functions Explained

https://youtu.be/v4Tl_BI84UY

Python Classes Made Easy Complete Beginner's

What are classes and objects?
How to define and use Python classes.
The power of the _init_ method.
Difference between class and instance attributes.
Adding methods to your classes.
Encapsulation and private attributes.
Inheritance and polymorphism.
Practical project: Build a Bank Account class with deposits and withdrawals.
https://youtu.be/nCGSAN8CG3I
3👍1
What will the following code output?
a = [1, 2, 3]
b = a.copy() a += [4, 5] print(a, b)
Anonymous Poll
46%
[1, 2, 3, 4, 5] [1, 2, 3]
38%
[1, 2, 3, 4, 5] [1, 2, 3, 4, 5]
10%
[1, 2, 3, 4, 5] [4, 5]
7%
Error
1
What will the following code output?
a = [1, 2, 3]
b = a.copy() a[1:2] = [4, 5] print(a, b)
Anonymous Poll
30%
[1, 4, 5, 3] [1, 2, 3]
29%
[1, 4, 5, 3] [1, 4, 5, 3]
23%
[1, 2, 3] [4, 5]
18%
Error
🥰21
Images to a PDF using Python
👏2👍1
Python QUIZ (55).png
1.6 MB