Python Projects & Resources
57.4K subscribers
778 photos
342 files
330 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
Python consumes 76 times more energy and is 72 times slower than C.
๐Ÿ˜ข18โค10๐Ÿ‘Œ7
โŒจ๏ธ Python String Methods
๐Ÿ‘27๐Ÿ”ฅ2
๐Ÿ–ฅ Get Started with Python

A good course on Python from Google.

More than 30 hours of relevant materials that will help you get into the topic.

Here the basic concepts of programming in Python and other features are discussed. Ideal if you have long wanted to try yourself in IT.

๐Ÿ“Œ Course
โค15๐Ÿ‘8
A python library to call all LLM API
๐Ÿ‘24
โŒจ๏ธ Floyd's Triangle
๐Ÿ‘30๐Ÿ”ฅ9๐Ÿ‘2๐Ÿ‘Œ1
๐Ÿ‘23๐Ÿ”ฅ6โค4
Python has awesome tools for creating CLIs, each with a unique flavor:

๐Ÿ”น argparse: Classic but verbose.
๐Ÿ”น click: User-friendly, decorator-based.
๐Ÿ”น typer: Leverages type hints for a clean, modern interface.
โค8๐Ÿ‘5
Happy Independence Day ๐Ÿ‡ฎ๐Ÿ‡ณ
โค26๐Ÿ‘5
To efficiently handle folders, navigate directories, write to files, and run scripts in your JupyterNotebook, use these four magic commands:

โœจ %mkdir: Create folders.
โœจ %cd: Navigate directories.
โœจ %%writefile: Write to files.
โœจ %run: Execute external Python scripts.
๐Ÿ‘9โค2๐Ÿ”ฅ2๐Ÿฅฐ1
๐Ÿ‘23โค8๐Ÿ”ฅ6
Python Lambda Function
๐Ÿ‘17๐Ÿ”ฅ2โค1
Python Tip for the day:
Use the "enumerate" function to iterate over a sequence and get the index of each element.

Sometimes when you're iterating over a list or other sequence in Python, you need to keep track of the index of the current element. One way to do this is to use a counter variable and increment it on each iteration, but this can be tedious and error-prone.

A better way to get the index of each element is to use the built-in "enumerate" function. The "enumerate" function takes an iterable (such as a list or tuple) as its argument and returns a sequence of (index, value) tuples, where "index" is the index of the current element and "value" is the value of the current element. Here's an example:
 Iterate over a list of strings and print each string with its index
strings = ['apple', 'banana', 'cherry', 'date']
for i, s in enumerate(strings):
print(f"{i}: {s}")

In this example, we use the "enumerate" function to iterate over a list of strings. On each iteration, the "enumerate" function returns a tuple containing the index of the current string and the string itself. We use tuple unpacking to assign these values to the variables "i" and "s", and then print out the index and string on a separate line.

The output of this code would be:
 apple
1: banana
2: cherry
3: date

Using the "enumerate" function can make your code more concise and easier to read, especially when you need to keep track of the index of each element in a sequence.
๐Ÿ‘12
Many people reached out to me saying telegram may get banned in their countries. So I've decided to create WhatsApp channels based on your interests ๐Ÿ‘‡๐Ÿ‘‡

Free Courses with Certificate: https://whatsapp.com/channel/0029Vamhzk5JENy1Zg9KmO2g

Jobs & Internship Opportunities:
https://whatsapp.com/channel/0029VaI5CV93AzNUiZ5Tt226

Web Development: https://whatsapp.com/channel/0029VaiSdWu4NVis9yNEE72z

Python Free Books & Projects: https://whatsapp.com/channel/0029VaiM08SDuMRaGKd9Wv0L

Java Resources: https://whatsapp.com/channel/0029VamdH5mHAdNMHMSBwg1s

Coding Interviews: https://whatsapp.com/channel/0029VammZijATRSlLxywEC3X

SQL: https://whatsapp.com/channel/0029VanC5rODzgT6TiTGoa1v

Power BI: https://whatsapp.com/channel/0029Vai1xKf1dAvuk6s1v22c

Programming Free Resources: https://whatsapp.com/channel/0029VahiFZQ4o7qN54LTzB17

Data Science Projects: https://whatsapp.com/channel/0029Va4QUHa6rsQjhITHK82y

Learn Data Science & Machine Learning: https://whatsapp.com/channel/0029Va8v3eo1NCrQfGMseL2D

Donโ€™t worry Guys your contact number will stay hidden!

ENJOY LEARNING ๐Ÿ‘๐Ÿ‘
๐Ÿ‘15โค5
Easy Python scenarios for everyday data tasks



Scenario 1: Data Cleaning
Question:
You have a DataFrame containing product prices with columns Product and Price. Some of the prices are stored as strings with a dollar sign, like $10. Write a Python function to convert the prices to float.

Answer:
import pandas as pd
data = {
'Product': ['A', 'B', 'C', 'D'],
'Price': ['$10', '$20', '$30', '$40']
}
df = pd.DataFrame(data)

def clean_prices(df):
df['Price'] = df['Price'].str.replace('$', '').astype(float)
return df
cleaned_df = clean_prices(df)
print(cleaned_df)

Scenario 2: Basic Aggregation
Question:
You have a DataFrame containing sales data with columns Region and Sales. Write a Python function to calculate the total sales for each region.

Answer:
import pandas as pd
data = {
'Region': ['North', 'South', 'East', 'West', 'North', 'South', 'East', 'West'],
'Sales': [100, 200, 150, 250, 300, 100, 200, 150]
}
df = pd.DataFrame(data)

def total_sales_per_region(df):
total_sales = df.groupby('Region')['Sales'].sum().reset_index()
return total_sales

total_sales = total_sales_per_region(df)
print(total_sales)

Scenario 3: Filtering Data
Question:
You have a DataFrame containing customer data with columns โ€˜CustomerIDโ€™, Name, and Age. Write a Python function to filter out customers who are younger than 18 years old.

Answer:
import pandas as pd
data = {
'CustomerID': [1, 2, 3, 4, 5],
'Name': ['Alice', 'Bob', 'Charlie', 'David', 'Eve'],
'Age': [17, 22, 15, 35, 40]
}
df = pd.DataFrame(data)

def filter_customers(df):
filtered_df = df[df['Age'] >= 18]
return filtered_df
filtered_customers = filter_customers(df)
print(filtered_customers)
๐Ÿ‘20โค3
Happy Ganesh Chaturthi ๐Ÿฅณโค๏ธ
โค33๐Ÿ™9๐Ÿ”ฅ4
So as a beginner you may Python as first language.

To learn this language, I divided it into 5 parts.

1. Basics:
- Syntax
- Data types
- Variables
- Control structures
- Functions
2. Data Structures:
- Lists
- Tuples
- Dictionaries
- Sets
3. File Input/Output:
- Reading from files
- Writing to files
4. Modules and Packages:
- Importing modules
- Creating modules
5. Object-Oriented Programming:
- Classes
- Objects
- Inheritance

If anything left please comment ๐Ÿ˜€

I have curated the best interview resources to crack Python Interviews ๐Ÿ‘‡๐Ÿ‘‡
https://whatsapp.com/channel/0029VaGgzAk72WTmQFERKh02

Hope you'll like it

Like this post if you need more resources like this ๐Ÿ‘โค๏ธ
๐Ÿ‘19โค3
Many people reached out to me saying telegram may get banned in their countries. So I've decided to create WhatsApp channels based on your interests ๐Ÿ‘‡๐Ÿ‘‡

Free Courses with Certificate: https://whatsapp.com/channel/0029Vamhzk5JENy1Zg9KmO2g

Jobs & Internship Opportunities:
https://whatsapp.com/channel/0029VaI5CV93AzNUiZ5Tt226

Web Development: https://whatsapp.com/channel/0029VaiSdWu4NVis9yNEE72z

Python Free Books & Projects: https://whatsapp.com/channel/0029VaiM08SDuMRaGKd9Wv0L

Java Resources: https://whatsapp.com/channel/0029VamdH5mHAdNMHMSBwg1s

Coding Interviews: https://whatsapp.com/channel/0029VammZijATRSlLxywEC3X

SQL: https://whatsapp.com/channel/0029VanC5rODzgT6TiTGoa1v

Power BI: https://whatsapp.com/channel/0029Vai1xKf1dAvuk6s1v22c

Programming Free Resources: https://whatsapp.com/channel/0029VahiFZQ4o7qN54LTzB17

Data Science Projects: https://whatsapp.com/channel/0029Va4QUHa6rsQjhITHK82y

Learn Data Science & Machine Learning: https://whatsapp.com/channel/0029Va8v3eo1NCrQfGMseL2D

Donโ€™t worry Guys your contact number will stay hidden!

ENJOY LEARNING ๐Ÿ‘๐Ÿ‘
๐Ÿ‘19๐Ÿคฃ2โค1