Python Projects & Resources
57K subscribers
776 photos
342 files
326 links
Perfect channel to learn Python Programming 🇮🇳
Download Free Books & Courses to master Python Programming
- Free Courses
- Projects
- Pdfs
- Bootcamps
- Notes

Admin: @Coderfun
Download Telegram
Finding IP Address of Device Using Python
👍3
Intermediate Python.pdf
1.2 MB
Intermediate python pdf
Read it once you finish basics.
👍51😁1
What is enumerate() function in python

The enumerate() function returns the length of an iterable and loops through its items simultaneously. Thus, while printing each item in an iterable data type, it simultaneously outputs its index.

Assume that you want a user to see the list of items available in your database. You can pass them into a list and use the enumerate() function to return this as a numbered list.

Here's how you can achieve this using the enumerate() method:

fruits = ["grape", "apple", "mango"]
for i, j in enumerate(fruits):
print(i, j)


Output:
0 grape
1 apple
2 mango


Whereas, you might've wasted valuable time using the following method to achieve this:

fruits = ["grape", "apple", "mango"]
for i in range(len(fruits)):
print(i, fruits[i])


In addition to being faster, enumerating the list lets you customize how your numbered items come through.

In essence, you can decide to start numbering from one instead of zero, by including a start parameter:

for i, j in enumerate(fruits, start=1):
print(i, j)


Output:
1 grape
2 apple
3 mango
👍16
Python String Formatting Types based on Placeholder
👍7
kevin-wilson-the-absolute-beginner-s-guide-to-python.pdf
13.2 MB
The Absolute Beginner's Guide to Python Programming
Kevin Wilson, 2022
👍3
stack_python.pdf
560.8 KB
𝐒𝐭𝐚𝐜𝐤 𝐃𝐚𝐭𝐚 𝐒𝐭𝐫𝐮𝐜𝐭𝐮𝐫𝐞 𝐢𝐧 𝐏𝐲𝐭𝐡𝐨𝐧
👍8
PythonProgrammingExercisesGentlyExplained.pdf
1.5 MB
Python Programming Exercises, 2022., gently explained
42 programming exercises on 160 pages with plain-English explanations


Exercise #1: Hello, World!
Exercise #2: Temperature Conversio
Exercise #3: Odd & Even
Exercise #4: Area & Volume
Exercise #5: Fizz Buzz
Exercise #6: Ordinal Suffix
Exercise #7: ASCII Table
Exercise #8: Read Write File
Exercise #9: Chess Square Color
Exercise #10: Find and Replace
Exercise #11: Hours, Minutes, Seconds
Exercise #12: Smallest & Biggest
Exercise #13: Sum & Product
Exercise #14: Average
Exercise #15: Median
Exercise #16: Mode
Exercise #17: Dice Roll
Exercise #18: Buy 8 Get 1 Free
Exercise #19: Password Generator
Exercise #20: Leap Year
And many more
👍13🔥13👎1😁1