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

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

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

🔁ادمین :
@maryam3771
Download Telegram
Pattern 20

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



#code #pattern

🆔 @Python4all_pro
👍1😍1
Pattern 21

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




#code #pattern

🆔 @Python4all_pro
👍7
Python pattern challenge : Heart

پترن های متنوعی رو قبلا در کانال فرستادم و روش‌های کدنویسی رو تقریبا باید یاد گرفته باشید حالا نوبت شماست که دست به کد شوید و این پترن را کدنویسی کنید ، خوشحال میشم جوابها رو برام بفرستید در کانال منتشر کنم

#code #pattern

🆔 @Python4all_pro
👍3
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
👍7👏1
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
👍10🏆4😍1
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
👍3❤‍🔥2👏1
Pattern 25

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



#code #pattern

🆔 @Python4all_pro
👍4😍4❤‍🔥3
Pattern 26

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




#code #pattern

🆔 @Python4all_pro
👍93👏1
Mastering Python Design Patterns.pdf
15.2 MB
Mastering Python Design Patterns, 3rd Edition: Craft essential Python patterns by following core design principles

2024

The book focuses on design principles and patterns in Python, covering both classic and modern patterns and showing how to apply them to solve everyday problems as a Python developer or architect. The new edition examines creative, structural, behavioral, and architectural patterns, including concurrency, asynchrony, and performance patterns. You'll learn how these patterns relate to various areas such as event processing, concurrency, distributed systems, and testing. The book also introduces Python antipatterns to help you avoid common pitfalls and ensure your code is clean and efficient.


#Python #pdf #pattern

🆔 @Python4all_pro
👍31
Drawings in the console using Python!



#Python #pattern

🆔 @Python4all_pro
👍6