Python Learning – Telegram
Python Learning
5.95K subscribers
506 photos
1 video
68 files
112 links
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
Download Telegram
#PyQuiz

What does range(5)[-1] return?
Anonymous Quiz
14%
5
49%
4
12%
-1
25%
Error
4
What is an F-String in Python?
4
Looks neat, right? But let’s slow down.

The *b syntax is called extended iterable unpacking. It grabs everything in the middle of the list, leaving the first item (a) and the last (c) outside the star. This pattern is super handy, but can also behave unexpectedly if you assume it’ll grab just one item or not consider the structure of the data.

The starred variable always gets a list, and it can be empty so plan accordingly when unpacking, especially in function arguments or loops.
For example: Consider the following code
x, *y = [42]
print(y)  # []


No error, but y is just an empty list! Unpacking doesn’t always fill every name the way you might guess.
1👍1
Given the above Python code, what will be printed?
Anonymous Quiz
14%
"hello"
69%
"olleh"
10%
"" (empty string)
7%
Error
2
1
What will be Printed?
Anonymous Quiz
63%
"abababc"
6%
"abababcc"
17%
"abcabcabc"
14%
Error
Selection Sort Using Python
👍21
Collection Data Types in Python
👍43
What will be the output for the above code?
Anonymous Quiz
37%
2.5
48%
2
4%
3
12%
Error
The input function in Python
4
140+ Python Practice Programs - For Real Learning, Not Just Theory

Struggling with Python logic?

Here's over 140 real Python programs that will help you to understand how code actually works-beyond the tutorials.

From basics to interview-level logic:
Arithmetic & conversions
Loops, Recursion, Lists, Arrays
Prime, Fibonacci, Armstrong logic
Matrices, Sorting, Factorials & more

Python pdf
5👏1
Python CheatSheet
3
Types of Opertors in Python