TGViewer
Channel Public Channel
Python Learning

Python Learning

@python_bds

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
Subscribers
5.75K
Photos
583
Videos
2
Links
131

Showing posts older than #858 Β· Back to latest

Older Posts 17 shown
Post #857 1.26K
PYTHON CHEATSHEET
FOUNDATION IN PYTHON PROGRAMMING
  • πŸ‘ 6
  • ❀ 2
Post #856 1.4K
Top Python tricks for efficient programming

Strings

Trick 6: Reversing the string

a=”python”
print(β€œReverse is”, a[::-1])

Output:
Reverse is nohtyp

Trick 7: Splitting the string

a="Python is the language of the future"
b=a.split()
print(b)

Output:
[β€˜Python’, β€˜is’, β€˜the’, β€˜language’, β€˜of’, 'the’, β€˜future’]

Trick 8: Printing out multiple values of strings

print(β€œon”*3+’ β€˜+”off”*2)

Output:
ononon offoff

Trick 9: Creating a single string

a = [β€œI”, β€œam”, β€œnot”, β€œavailable”]
print(β€œ β€œ.join(a))

Output:
I am not available

Trick 10: Checking if two words are anagrams

from collections import Counter
def is_anagram(str1, str2):
return Counter(str1) == Counter(str2)
print(is_anagram(β€˜taste’, β€˜state))
print(is_anagram(β€˜beach’, β€˜peach’))

Output:
True
False
  • πŸ‘ 4
  • ❀ 2
Post #855 1.41K
Slicing Strings
β”Œβ”€β”€β”€β”¬β”€β”€β”€β”¬β”€β”€β”€β”¬β”€β”€β”€β”¬β”€β”€β”€β”¬β”€β”€β”€β”¬β”€β”€β”€β”
| m | y | b | a | c | o | n |
β””β”€β”€β”€β”΄β”€β”€β”€β”΄β”€β”€β”€β”΄β”€β”€β”€β”΄β”€β”€β”€β”΄β”€β”€β”€β”΄β”€β”€β”€β”˜
0   1   2   3   4   5   6  
-7  -6   -5  -4  -3  -2  -1

>>> s = 'mybacon'
>>> s[2:5]
'bac'
>>> s[0:2]
'my'



```python
>>> s = 'mybacon'
>>> s[:2]
'my'
>>> s[2:]
'bacon'
>>> s[:2] + s[2:]
'mybacon'
>>> s[:]
'mybacon'



python
>>> s = 'mybacon'
>>> s[-5:-1]
'baco'
>>> s[2:6]
'baco'`
  • ❀ 4
  • πŸ‘ 1
Post #853 1.98K
🐍 Python Roadmap 🐍

1️⃣ Foundations πŸ—
β€’ Syntax: Variables, Data Types, Operators
β€’ Control Flow: if, else, loops πŸŒ€
β€’ Functions: def, parameters, return values πŸ”§
β€’ Collections: Lists, Tuples, Sets, Dictionaries πŸ”‘

2️⃣ Intermediate 🧠
β€’ OOP: Classes, Inheritance, Polymorphism πŸ‘¨β€πŸ’»
β€’ Error Handling: try, except, Custom Exceptions 🚫
β€’ File Handling: Read/Write Files πŸ“
β€’ Modules: import, third-party libraries πŸ“¦

3️⃣ Advanced πŸš€
β€’ Decorators: Modify functions πŸ”„
β€’ Generators: Efficient iteration πŸ”„
β€’ Context Managers: with statements πŸ”‘
β€’ Multithreading: Parallel tasks πŸ§‘β€πŸ’»

4️⃣ Frameworks & Tools 🧰
β€’ Web Dev: Flask/Django ⚑️
β€’ Testing: unittest, pytest πŸ§ͺ
β€’ Data Science: Jupyter, Matplotlib πŸ“ˆ
β€’ DevOps: Docker 🐳, AWS SDK πŸŒ₯

5️⃣ Real-World Projects πŸ› 
β€’ Web Scraper: Collect data from websites (e.g., stock prices, weather) 🌐
β€’ Task Manager App: Track your to-dos with a simple UI πŸ—‚
β€’ Blog Website: Build a full-stack blog with Flask/Django ✍️
β€’ Chatbot: Create a simple FAQ bot using Python libraries πŸ€–
β€’ Portfolio Website: Showcase your projects and skills πŸ’»
β€’ E-commerce Website: Basic shopping cart system πŸ›

6️⃣ Best Practices πŸ’‘
β€’ Clean Code: PEP 8, Readability πŸ“
β€’ Version Control: Git/GitHub 🌍
β€’ CI/CD: Automate testing & deployment πŸš€
β€’ Algorithms: Sorting, Searching βš™οΈ

πŸ“… Timeline
β€’ 1–3 months: Basics
β€’ 3–6 months: Intermediate + Small Projects
β€’ 6–12 months: Advanced Topics & Large Projects
β€’ Ongoing: Open Source & Practice 🎯

πŸ“ Tip: Always keep building, experimenting, and learning! πŸš€


PS. Sorry we took short break, we are back to posting and learning 😊
  • ❀ 3
  • πŸ‘ 1
Post #851 2.16K
A wonderful collection of Python tools for Data Science by Alex Wang.
  • ❀ 3
  • πŸ‘ 3
  • πŸ”₯ 1
Post #850 2.13K
Python Roadmap
  • πŸ‘ 4
  • ❀ 3
Post #849 2.31K
✨ Welcome, 2025! ✨

The old year bids us farewell, leaving behind countless sweet memories and valuable lessons.
2024 taught us how to grow, improve, and keep moving forward with courage and hope.

May this new year bring new horizons of success, endless joy, and thrilling projects.
Your love and support made 2024 so memorable and meaningful.
You are the reason behind our progress and the source of our motivation. πŸ’–

In 2025, we aim to learn more, create new ideas, and share incredible moments with you.

Wishing you all a heartfelt Happy New Year! 🌈
Let’s come together and create wonderful memories this year.

Stay connected with us: @python_bds
  • ❀ 5
  • πŸ‘ 1
  • πŸ‘ 1
Post #847 2.33K
Selenium Base

Python APIs for web automation, testing, and bypassing bot-detection.

Creator: Selenium ase
Stars ⭐️: 6.5k
Forked By: 1k
GithubRepo: https://github.com/seleniumbase/SeleniumBase


#API #python
βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–
Join @python_bds for more cool repositories.
*This channel belongs to @bigdataspecialist group
GitHub GitHub - seleniumbase/SeleniumBase: A framework + Python APIs for web automation, end-to-end testing, and bypassing bot-detection/CAPTCHAs.… A framework + Python APIs for web automation, end-to-end testing, and bypassing bot-detection/CAPTCHAs. Works with Selenium and Playwright. Includes lots of tools and examples. - seleniumbase/Selen...
  • ❀ 3
  • πŸ‘ 2
Post #846 1.89K
Python: From Zero to Hero - Code Your Way to the Top


Rating ⭐️: 4.4 out 5
Students πŸ‘¨β€πŸŽ“ : 233,718
Duration ⏰ : 4.5 hours on-demand video
πŸ‘©β€πŸ’» 1 article
9 downloadable resources
Created by πŸ‘¨β€πŸ«: Ahmed El Mohandes

πŸ”— COURSE LINK

⚠️ Its free for first 1000 enrollments only!


#python
βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–
πŸ‘‰Join @bigdataspecialist for moreπŸ‘ˆ
Udemy Python: From Zero to Hero - Code Your Way to the Top Python 2024: Blast Off from Beginner to Pro - Your Coding Rocket Awaits
  • ❀ 2
Post #845 1.79K
  • ❀ 4
  • πŸ‘ 1
Post #844 2.09K
rock_paper_scissor_game.py2.2 KB
Rock Paper Scissor Game in Python πŸš€

Do not forget to React ❀️  to this Message for More Content Like this

     
        
Thanks For Joining All ❀️
  • πŸ‘ 4
  • ❀ 2
Post #843 2.1K
Python String Methods πŸš€

Don't Forget to give reactions❀️
  • ❀ 8
  • πŸ‘ 3
Post #842 1.77K
  • ❀ 5
  • πŸ‘ 1
Post #841 1.88K
x = [1, 2, 3]
y = (4, 5, 6)
z = x + list(y)
print(z)
  • ❀ 5
Post #840 1.99K
gui_calender.py1.3 KB
GUI Calender in Python πŸ“…

Do not forget to React ❀️  to this Message for More Content Like this

     
        
Thanks For Joining All ❀️
  • ❀ 4
  • πŸ‘ 2
  • πŸ‘ 1
Post #839 1.95K
python Tip
  • ❀ 11
  • πŸ‘ 2
  • πŸ”₯ 1
Post #832 1.76K
Cheat-Sheets For Pandas 🐼

Don't Forget to give reactions❀️
  • ❀ 9
  • πŸ‘ 1
  • πŸ”₯ 1
Older posts β†’
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook β†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 β†’