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

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

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

🔁ادمین :
@maryam3771
Download Telegram
Python pattern challenge : Heart

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

#code #pattern

🆔 @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
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
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
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
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
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
Drawings in the console using Python!



#Python #pattern

🆔 @Python4all_pro