پایتون ( Machine Learning | Data Science )
23.6K subscribers
468 photos
57 videos
103 files
335 links
◀️اینجا با تمرین و چالش با هم پایتون رو یاد می گیریم

بانک اطلاعاتی پایتون
پروژه / code/ cheat sheet
+ویدیوهای آموزشی

+کتابهای پایتون
تبلیغات:
@alloadv

🔁ادمین :
@maryam3771
Download Telegram
Python cheat sheet .pdf
1.5 MB
هر روز یک Cheat Sheet
برگه تقلب شماره 15 پایتون




#cheat_sheet #pdf

🆔 @Python4all_pro
Pattern 22

n = 7
for i in range(n):
for j in range(n):
if i == j:
print(i+1, end=" ")
else:
print(0, end=" ")
print()



#code #pattern

🆔 @Python4all_pro
Scrap Image from google using BeautifulSoup
import requests
from bs4 import BeautifulSoup as BSP

def get_image_urls(search_query):
url = f"https://www.google.com/search?q={search_query}&tbm=isch"
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3"
}
rss = requests.get(url, headers=headers)
soup = BSP(rss.content, "html.parser")

all_img = []
for img in soup.find_all('img'):
src = img['src']
if not src.endswith("gif"):
all_img.append(src)

return all_img

print(get_image_urls("boy"))




#code

🆔 @Python4all_pro
Please open Telegram to view this post
VIEW IN TELEGRAM
🖥 Extracting Tables from a PDF



Github




#code

🆔 @Python4all_pro
مسیر یادگیری پایتون



🆔 @Python4all_pro
پایتون ( Machine Learning | Data Science )
مسیر یادگیری پایتون 🆔 @Python4all_pro
با این برنامه ۴ ماهه پایتون را یاد بگیرید رزومه قوی بسازید و Backend Developer ماهری شوید👇

1️⃣ 𝗠𝗼𝗻𝘁𝗵 𝟭: 𝗚𝗲𝘁 𝘆𝗼𝘂𝗿 𝗯𝗮𝘀𝗶𝗰𝘀 𝗿𝗶𝗴𝗵𝘁

1. Learn Python:https://www.simplilearn.com/learn-python-basics-free-course-skillup

2. Python Projects: https://hackr.io/blog/python-projects

3. DSA with Python: imp.i115008.net/0Z7obY

2️⃣ 𝗠𝗼𝗻𝘁𝗵 𝟮: 𝗗𝗶𝘃𝗲 𝗶𝗻𝘁𝗼 𝗙𝗹𝗮𝘀𝗸 𝗮𝗻𝗱 𝗔𝗣𝗜

Learn Flask: https://www.codecademy.com/learn/learn-flask

Flask Projects: machinelearningprojects.net/flask-projects/

Learn REST API with Flask: https://realpython.com/flask-connexion-rest-api/

3️⃣ 𝗠𝗼𝗻𝘁𝗵 𝟯: 𝗠𝗮𝘀𝘁𝗲𝗿 𝗮𝗱𝘃𝗮𝗻𝗰𝗲𝗱 𝗰𝗼𝗻𝗰𝗲𝗽𝘁𝘀 𝗮𝗻𝗱 𝗱𝗮𝘁𝗮𝗯𝗮𝘀𝗲𝘀

1. Learn Multithreading, Multiprocessing, Asyncio: lnkd.in/e_99Jiwp

2. Gunicorn & Nginx with Flask: lnkd.in/eWxgTNdB

3. TDD with Python & Flask: lnkd.in/eMjweHuZ

4. Basic RDBMS: lnkd.in/ebkPd8-q

5. Learn SQL: sqlbolt.com & W3Schools.com

6. PostgreSQL with Python: lnkd.in/esKUqNdt

7. Flask App with PostgreSQL: lnkd.in/eTzpcwNc

4️⃣ 𝗠𝗼𝗻𝘁𝗵 𝟰: 𝗣𝗼𝗹𝗶𝘀𝗵 𝘆𝗼𝘂𝗿 𝘀𝗸𝗶𝗹𝗹𝘀 𝗮𝗻𝗱 𝗽𝗿𝗲𝗽𝗮𝗿𝗲 𝗳𝗼𝗿 𝘁𝗵𝗲 𝗷𝗼𝗯 𝗺𝗮𝗿𝗸𝗲𝘁

1. Basics of Bash: lnkd.in/eZnG8cP6

2. Basics of Docker: lnkd.in/eFEK_aXW

3. Deploy Flask App with Docker: lnkd.in/eTjnFW8Y

4. GIT & GitHub: lnkd.in/ejshTxFw

5. Python Portfolio on Github: lnkd.in/eB2AanXj

6. Python Resume Ideas: lnkd.in/e_Fb7uNi

#Roadmap


🆔 @Python4all_pro
Pattern 23

n = 7
for i in range(n):
for j in range(i+1):
if i % 2 == 0:
print("*", end=" ")
else:
print("#", end=" ")
print()




#code #pattern

🆔 @Python4all_pro
IP Address information using Python



#code

🆔 @Python4all_pro
۷۱ پروژه برتر پایتون برای مبتدیان [به همراه کد ]



https://morioh.com/p/25322af6c72c?f=5cb7d89d660c8335951ca454



#پروژه

🆔 @Python4all_pro
هر روز یک Cheat Sheet : برگه تقلب شماره 16

این ممکن است جامع ترین برگه تقلبی باشد که تاکنون دیده ایم که در قالب یک صفحه وب با لینک های مناسب به بخش ها ساخته شده است. در قالب PDF نیز قابل دانلود است.



🔗 Github : https://kieranholland.com/best-python-cheat-sheet/

📘PDF: https://kieranholland.com/best-python-cheat-sheet/best-python-cheat-sheet.pdf


#cheat_sheet #pdf

🆔 @Python4all_pro
💎هر روز یک Cheat Sheet : برگه تقلب شماره ۱۷ :
برگه تقلب مفید برای کتابخانه
BeautifulSoup

کتابخانه BeautifulSoup برای استخراج داده ها از صفحات وب طراحی شده است.

این برگه تقلب  بسیار گسترده است و جنبه هایی مانند نصب، ایجاد یک شی BeautifulSoup، کار با انواع مختلف اشیاء، جستجو در درخت تجزیه و غیره را پوشش می دهد.

📌 https://proxiesapi.com/articles/the-complete-beautifulsoup-cheatsheet-with-examples


#cheat_sheet #کتابخانه #library

🆔 @Python4all_pro
⁉️ تمرین  : به نظر شما گزینه درست کدومه ؟

#code #test

🆔 @Python4all_pro
پایتون ( Machine Learning | Data Science )
⁉️ تمرین  : به نظر شما گزینه درست کدومه ؟ #code #test 🆔 @Python4all_pro
Explanation:
The code defines a decorator function decorator that takes a function func as an argument and returns a wrapper function. The wrapper function is responsible for performing some additional actions before and after the execution of func.

The @decorator syntax is used to decorate the my_function function with the decorator function. This means that when my_function is called, it will be wrapped by the wrapper function defined in the decorator function.

When my_function(3, 5) is called, the decorator function's wrapper function is executed. It prints "Before function execution", then calls my_function with the provided arguments and stores the result in the result variable. After that, it prints "After function execution" and returns the result.

Finally, the value of result is printed to the console, which will be the sum of the arguments passed to my_function, resulting in the output "8".

Therefore, the correct answer is option 😎 Before function execution, 8, After function execution. The program will output those three lines in the given order.


#code #test

🆔 @Python4all_pro
Pattern 24

n = 7
for i in range(n):
for j in range(i+1):
if j % 3 == 0:
print("*", end=" ")
elif j % 3 == 1:
print("#", end=" ")
else:
print("@", end=" ")
print()




#code #pattern

🆔 @Python4all_pro
Python Code to Display Calendar 🗓️ :

import calendar 
# Enter the month and year 
yy = int(input("Enter year: ")) 
mm = int(input("Enter month: ")) 
 
# display the calendar 
print(calendar.month(yy,mm))



#code

🆔 @Python4all_pro