✨ Topic: Python API Tutorials ✨
📖 Learn to design, build, secure, and consume Python APIs with FastAPI, Flask, Django, Requests, OpenAPI, testing, Docker, and deployment tips.
🏷️ #29_resources
📖 Learn to design, build, secure, and consume Python APIs with FastAPI, Flask, Django, Requests, OpenAPI, testing, Docker, and deployment tips.
🏷️ #29_resources
✨ Topic: Python Development Tools ✨
📖 Pick your editor, manage venvs, use Git, run pytest, auto-fix code with Ruff. Add mypy, CI, packaging, and Docker to ship with confidence.
🏷️ #104_resources
📖 Pick your editor, manage venvs, use Git, run pytest, auto-fix code with Ruff. Add mypy, CI, packaging, and Docker to ship with confidence.
🏷️ #104_resources
✨ Quiz: Astral's ty Type Checker for Python ✨
📖 Test your knowledge of Astral's ty—a blazing-fast, Rust-powered Python type checker. You'll cover installation, usage, rule configuration, and the tool's current limitations.
🏷️ #intermediate #tools
📖 Test your knowledge of Astral's ty—a blazing-fast, Rust-powered Python type checker. You'll cover installation, usage, rule configuration, and the tool's current limitations.
🏷️ #intermediate #tools
✨ Quiz: Modern Python Linting With Ruff ✨
📖 Test your Ruff skills in a quick quiz. Practice installation checks, continuous linting, formatting, rule selection, auto-fixes, and config.
🏷️ #intermediate #devops #tools
📖 Test your Ruff skills in a quick quiz. Practice installation checks, continuous linting, formatting, rule selection, auto-fixes, and config.
🏷️ #intermediate #devops #tools
❤1
Forwarded from Machine Learning with Python
This channels is for Programmers, Coders, Software Engineers.
0️⃣ Python
1️⃣ Data Science
2️⃣ Machine Learning
3️⃣ Data Visualization
4️⃣ Artificial Intelligence
5️⃣ Data Analysis
6️⃣ Statistics
7️⃣ Deep Learning
8️⃣ programming Languages
✅ https://news.1rj.ru/str/addlist/8_rRW2scgfRhOTc0
✅ https://news.1rj.ru/str/Codeprogrammer
Please open Telegram to view this post
VIEW IN TELEGRAM
❤2
Forwarded from Machine Learning with Python
Today I am 3️⃣ 0️⃣ years old, I am excited to make more successes and achievements
My previous year was full of exciting events and economic, political and programmatic noise, but I kept moving forward
Best regards
Eng. @HusseinSheikho🔤
My previous year was full of exciting events and economic, political and programmatic noise, but I kept moving forward
Best regards
Eng. @HusseinSheikho
Please open Telegram to view this post
VIEW IN TELEGRAM
❤1👍1
✨ Quiz: Python MCP Server: Connect LLMs to Your Data ✨
📖 Test your knowledge of Python MCP. Practice installation, tools, resources, transports, and how LLMs interact with MCP servers.
🏷️ #intermediate
📖 Test your knowledge of Python MCP. Practice installation, tools, resources, transports, and how LLMs interact with MCP servers.
🏷️ #intermediate
Lambdas are not just one-line functions, they also preserve context
The logic is right where it is needed. No need to jump between lines.
👉 @DataScience4
The logic is right where it is needed. No need to jump between lines.
# Without lambda — you have to jump around the code
def get_name(user):
return user['name']
# Imagine there are 100–200 lines of code here...
users.sort(key=get_name)
# Sorting conditions right in place
users.sort(key=lambda user: user['name'])
Please open Telegram to view this post
VIEW IN TELEGRAM
❤5
✨ It's Almost Time for Python 3.14 and Other Python News ✨
📖 The final release of Python 3.14 is almost here! Plus, there's Django 6.0 alpha, key PEP updates, PSF board results, and fresh Real Python resources.
🏷️ #community #news
📖 The final release of Python 3.14 is almost here! Plus, there's Django 6.0 alpha, key PEP updates, PSF board results, and fresh Real Python resources.
🏷️ #community #news
❤1
Tuples use less memory than lists of the same size
The difference is small, but when working with large amounts of data — it matters.🤕
👉 @DataScience4
>>> import sys
>>> sys.getsizeof(tuple(iter(range(20))))
200
>>> sys.getsizeof(list(iter(range(20))))
216
The difference is small, but when working with large amounts of data — it matters.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤2
✨ Python 3.14: Cool New Features for You to Try ✨
📖 Learn what's new in Python 3.14, including an upgraded REPL, template strings, lazy annotations, and subinterpreters, with examples to try in your code.
🏷️ #intermediate #python
📖 Learn what's new in Python 3.14, including an upgraded REPL, template strings, lazy annotations, and subinterpreters, with examples to try in your code.
🏷️ #intermediate #python
❤4
Python.pdf
488 KB
👨🏻💻 An excellent note that teaches everything from basic concepts to building professional projects with Python.
➖➖➖➖➖➖➖➖➖➖➖➖➖
Please open Telegram to view this post
VIEW IN TELEGRAM
❤2
✨ Quiz: Python 3.14: Cool New Features for You to Try ✨
📖 In this quiz, you'll test your understanding of the new features introduced in Python 3.14. By working through this quiz, you'll review the key updates and improvements in this version of Python.
🏷️ #intermediate #python
📖 In this quiz, you'll test your understanding of the new features introduced in Python 3.14. By working through this quiz, you'll review the key updates and improvements in this version of Python.
🏷️ #intermediate #python
Clean code advice in Python:
Use Enum to logically group related constants.
Use Enum to logically group related constants.
from dataclasses import dataclass
from enum import Enum
Bad:
ORDER_PLACED = "PLACED"
ORDER_CANCELED = "CANCELED"
ORDER_FULFILLED = "FULFILLED"
@dataclass
class Order:
status: str
order = Order(ORDER_PLACED)
print(order)
Good:
class OrderStatus(str, Enum):
PLACED = "PLACED"
CANCELED = "CANCELED"
FULFILLED = "FULFILLED"
@dataclass
class Order:
status: OrderStatus
order = Order(OrderStatus.PLACED)
print(order)
❤6
Clean code tip for Python:
Use a dictionary to remove duplicates from a list while preserving the order of elements.
The point is that dictionary keys are unique, and starting from Python 3.7, the order of insertion is preserved.
So this is a concise way to remove duplicates without losing order.
👉 @DataScience4
Use a dictionary to remove duplicates from a list while preserving the order of elements.
names = ["John", "Daisy", "Bob", "Lilly", "Bob", "Daisy"]
unique_names = list({name: name for name in names}.values())
print(unique_names)
# ['John', 'Daisy', 'Bob', 'Lilly']
The point is that dictionary keys are unique, and starting from Python 3.7, the order of insertion is preserved.
So this is a concise way to remove duplicates without losing order.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤3👍1🔥1
✨ large language model (LLM) | AI Coding Glossary ✨
📖 A neural network that predicts the next token to perform general-purpose language tasks.
🏷️ #Python
📖 A neural network that predicts the next token to perform general-purpose language tasks.
🏷️ #Python
✨ generative pre-trained transformer (GPT) | AI Coding Glossary ✨
📖 Autoregressive language models that use the transformer architecture and are pre-trained on large text corpora.
🏷️ #Python
📖 Autoregressive language models that use the transformer architecture and are pre-trained on large text corpora.
🏷️ #Python