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

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

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

🔁ادمین :
@maryam3771
Download Telegram
🔅 Convert JPG to PNG
from PIL import Image

im = Image.open("naruto.jpg").convert("RGB")
im.save("naruto.png", "png")


🔅 Convert PNG to JPG
from PIL import Image

im = Image.open("naruto.png").convert("RGB")
im.save("naruto.jpg", "jpeg")


```install
pip install PIL `




#code

🆔 @Python4all_pro
👍2
Convert JPG to PNG


#code

🆔 @Python4all_pro
😍5👍2👾1
🔅 Low Battery Notification


#code

🆔 @Python4all_pro
🆒6
Low Battery Notification

pip install psutil

import psutil

battery = psutil.sensors_battery()
plugged = battery.power_plugged
percent = battery.percent

if percent <= 30 and plugged!=True:
# pip install py-notifier
# pip install win10toast
from pynotifier import Notification

Notification(
title="Battery Low",
description=str(percent) + "% Battery remain!!",
duration=5, # Duration in seconds
).send()





#code

🆔 @Python4all_pro
👍9
Pattern 16

n = 7
for i in range(7):
print(" " * i, end="")
for j in range(1, 7-i+1):
print(j, end=" ")
print()



#code #pattern

🆔 @Python4all_pro
👍7❤‍🔥2
⁉️ تمرین  : به نظر شما گزینه درست کدومه ؟

#code #test

🆔 @Python4all_pro
Explanation:
Here, 'result' is a list which is extending three times. When first time 'extend' function is called for 'result', the inner code generates a generator object, which is further used in 'extend' function. This generator object contains the values which are in 'list1' only (not in 'list2' and 'list3').
Same is happening in second and third call of 'extend' function in these generator object contains values only in 'list2' and 'list3' respectively. So, 'result' variable will contain elements which are only in one list (not more than 1 list).


🆔 @Python4all_pro
👍3
Convert Video Files to a Gif in Python

#code

🆔 @Python4all_pro
👍5
Create a Screen recorder using Python

#code

🆔 @Python4all_pro
👍8
Ultimate Python Cheatsheet 🔥.pdf
2.3 MB
هر روز یک Cheat Sheet
برگه تقلب شماره 14 پایتون

Cheat Sheet 14 : Ultimate Python cheat sheet


#cheat_sheet #pdf

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

#code #test

🆔 @Python4all_pro
Pattern 17

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




#code #pattern

🆔 @Python4all_pro
👍5🏆31
Printing colored output in Python


#code

🆔 @Python4all_pro
👍15😍4❤‍🔥2
⁉️ تمرین  : به نظر شما گزینه درست کدومه ؟

#code #test

🆔 @Python4all_pro
Pattern 18

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




#code #pattern

🆔 @Python4all_pro
👍7❤‍🔥3🤷‍♂1
💠 Encrypt PDF files using Python




#code

🆔 @Python4all_pro
🆒3
Learn Python With Amazing Experience .pdf
6.7 MB
یادگیری پایتون با مثالهای ساده و جالب

#pdf

🆔 @Python4all_pro
👍7