Python Projects & Resources – Telegram
Python Projects & Resources
60.8K subscribers
858 photos
342 files
345 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
13. format()

The format() method lets you manipulate your string output. Here's how it works:

multiple = 5*2
multiple2 = 7*2
a = "{} is the multiple of 5 and 2, but {} is for 7 and 2"
a = a.format(multiple, multiple2)
print(a)

Output:
10 is the multiple of 5 and 2, but 14 is for 7 and 2
3👍2
14. strip()

Python's strip() removes leading characters from a string. It repeatedly removes the first character from the string, if it matches any of the supplied characters.

If you don't specify a character, strip removes all leading whitespace characters from the string.

The example code below removes the letter P and the space before it from the string:

st = " Python tutorial"
st = st.strip(" P")
print(st)

Output: ython tutorial

You can replace (" P") with ("P") to see what happens.
3
15. abs()

Do you want to neutralize negative mathematical outputs? Then try out the abs() function. It can come in handy in computational programming or data science operations.

See the example below for how it works:

neg = 4 - 9
pos = abs(neg)
print(pos)

Output: 5
16. upper()

As the name implies, the upper() method converts string characters into their uppercase equivalent:

y = "Python tutorial"
y = y.upper()
print(y)

Output: PYTHON TUTORIAL
👍21
17. lower()

You guessed right! Python's lower() is the opposite of upper(). So it converts string characters to lowercases:

y = "PYTHON TUTORIAL"
y = y.lower()
print(y)

Output: python tutorial
👍2
18. sorted()

The sorted() function works by making a list from an iterable and then arranging its values in descending or ascending order:

f = {1, 4, 9, 3} # Try it on a set
sort = {"G":8, "A":5, "B":9, "F":3} # Try it on a dictionary
print(sorted(f, reverse=True)) # Descending
print(sorted(sort.values())) # Ascending (default)

Output:
[9, 4, 3, 1]
[3, 5, 8, 9]
19. join()

The join() function lets you merge string items in a list.

You only need to specify a delimiter and the target list to use it:

a = ["Python", "tutorial", "on", "MUO"]
a = " ".join(a)
print(a)

Output: Python tutorial on MUO
👍41
20. replace()

Python's replace() method lets you replace some parts of a string with another character. It's often handy in data science, especially during data cleaning.
The replace() method accepts two parameters: the replaced character and the one you'll like to replace it with.

Here's how it works:

columns = ["Cart_name", "First_name", "Last_name"]
for i in columns:
i = i.replace("_", " ")
print(i)

Output:
Cart name
First name
Last name
👍81
Learning Python for data science can be a rewarding experience. Here are some steps you can follow to get started:

1. Learn the Basics of Python: Start by learning the basics of Python programming language such as syntax, data types, functions, loops, and conditional statements. There are many online resources available for free to learn Python.

2. Understand Data Structures and Libraries: Familiarize yourself with data structures like lists, dictionaries, tuples, and sets. Also, learn about popular Python libraries used in data science such as NumPy, Pandas, Matplotlib, and Scikit-learn.

3. Practice with Projects: Start working on small data science projects to apply your knowledge. You can find datasets online to practice your skills and build your portfolio.

4. Take Online Courses: Enroll in online courses specifically tailored for learning Python for data science. Websites like Coursera, Udemy, and DataCamp offer courses on Python programming for data science.

5. Join Data Science Communities: Join online communities and forums like Stack Overflow, Reddit, or Kaggle to connect with other data science enthusiasts and get help with any questions you may have.

6. Read Books: There are many great books available on Python for data science that can help you deepen your understanding of the subject. Some popular books include "Python for Data Analysis" by Wes McKinney and "Data Science from Scratch" by Joel Grus.

7. Practice Regularly: Practice is key to mastering any skill. Make sure to practice regularly and work on real-world data science problems to improve your skills.

Remember that learning Python for data science is a continuous process, so be patient and persistent in your efforts. Good luck!
👍53
⌨️ QR code generation in Python
🔥52
Machine Learning Project Ideas 👆
👍41
Step-by-Step Approach to Learn Python
Learn the Basics → Syntax, Variables, Data Types (int, float, string, boolean)

Control Flow → If-Else, Loops (For, While), List Comprehensions

Data Structures → Lists, Tuples, Sets, Dictionaries

Functions & Modules → Defining Functions, Lambda Functions, Importing Modules

File Handling → Reading/Writing Files, CSV, JSON

Object-Oriented Programming (OOP) → Classes, Objects, Inheritance, Polymorphism

Error Handling & Debugging → Try-Except, Logging, Debugging Techniques

Advanced Topics → Regular Expressions, Multi-threading, Decorators, Generators

Free Python Resources: https://whatsapp.com/channel/0029VaiM08SDuMRaGKd9Wv0L

ENJOY LEARNING 👍👍
👍96🙏1
5 Python Projects for beginners 👇
https://youtu.be/kjemNqhAQVA?si=10jSVUKzSSfD1Ubl

Like for more free resources ❤️
👍82🔥1
Python Handwritten Notes 👆
2👍1🔥1