Python Programming
1.75K subscribers
592 photos
2 videos
190 files
8 links
Learning Python programming is easy! πŸ”₯

🎯 Free project tutorials


πŸ† Daily quiz and Weekly Quiz Challenge

πŸš€ Hands-on guides


Learn to build projects from small to large and improve your skills!

Support My Work: https://buymeacoffee.com/mdsabbirahma
Download Telegram
Python Program To Generate Password πŸš€

Don't Forget to give reactions❀️
❀4πŸ”₯1
πŸ” Top 10 Python Tuple Operations You Must Know πŸ“¦πŸ

tup = (1, 2, 3, 4, 2)

1. len() – Get length of tuple
β€Ί len(tup) β†’ 5

2. count() – Count occurrences of a value
β€Ί tup.count(2) β†’ 2

3. index() – Find index of a value
β€Ί tup.index(3) β†’ 2

4. in keyword – Check existence
β€Ί 2 in tup β†’ True

5. for loop – Iterate through elements
β€Ί for i in tup: print(i)

6. slicing – Access sub-parts
β€Ί tup[1:4] β†’ (2, 3, 4)

7. + operator – Concatenate tuples
β€Ί tup + (5, 6) β†’ (1, 2, 3, 4, 2, 5, 6)

8. * operator – Repeat tuple
β€Ί tup * 2 β†’ (1, 2, 3, 4, 2, 1, 2, 3, 4, 2)

9. tuple() – Convert iterable to tuple
β€Ί tuple([7, 8]) β†’ (7, 8)

10. min() / max() – Get smallest/largest item
β€Ί min(tup) β†’ 1
β€Ί max(tup) β†’ 4

πŸ’‘ Bonus: Tuples are immutable – they can’t be changed after creation.

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

     
        
Thanks For Joining All ❀️
❀5πŸ₯°1
Q: What does type(True) return?
Anonymous Quiz
85%
a) bool
8%
b) int
4%
c) str
4%
d) float
❀3
Numpy Cheatsheet πŸš€

Don't Forget to give reactions❀️
❀13