◀️اینجا با تمرین و چالش با هم پایتون رو یاد می گیریم
⏮بانک اطلاعاتی پایتون
پروژه / code/ cheat sheet
+ویدیوهای آموزشی
+کتابهای پایتون
تبلیغات:
@alloadv
🔁ادمین :
@maryam3771
Post #309
3.27K
پا @python4all_pro
Showing posts older than #310 · Back to latest
from PIL import Image
# https://t.me/LearnPython3
in_img = 'input.png'
out_img = 'compressed.png'
# Open the image
with Image.open(in_img) as img:
# Save the compressed image
img.save(out_img, 'PNG', quality=80)
print(f"Image compressed successfully!")

n = 7
for i in range(n):
for j in range(n-i, n+1):
print(j, end=" ")
print()
پایتون | Data Science | Machine Learning What is the value of L at the end of execution of the program?


n = 7
for i in range(1, n+1):
for j in range(i, 0, -1):
print(j, end=" ")
print()
پایتون | Data Science | Machine Learning What is the output of the code?

n = 7
for i in range(1, n+1):
for j in range(1, i+1):
print(i, end=" ")
print()
پایتون | Data Science | Machine Learning ⁉️ تمرین : به نظر شما گزینه درست کدومه ؟ #code #test 🆔 @Python4all_pro