Code With Python
39K subscribers
841 photos
24 videos
22 files
746 links
This channel delivers clear, practical content for developers, covering Python, Django, Data Structures, Algorithms, and DSA – perfect for learning, coding, and mastering key programming skills.
Admin: @HusseinSheikho || @Hussein_Sheikho
Download Telegram
Join the Real Python Community Chat

📖 Join the Real Python Community Chat and meet the Real Python Team and other Pythonistas looking to improve their skills. Discuss your coding and career questions, celebrate your progress, vote on upcoming tutorial topics, or just hang out with us at this virtual water cooler.

🏷️ #Python
2
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://t.me/addlist/8_rRW2scgfRhOTc0

https://t.me/Codeprogrammer
Please open Telegram to view this post
VIEW IN TELEGRAM
5
py-spy | Python Tools

📖 A sampling profiler for Python.

🏷️ #Python
1
PyCharm | Code Editors & IDEs

📖 An integrated development environment (IDE) focused on Python.

🏷️ #Python
1
Visual Studio Code | Code Editors & IDEs

📖 A free, cross-platform source code editor.

🏷️ #Python
2👍1
Reference: Code Editors & IDEs

📖 Popular code editors and IDEs that help you write, run, and debug Python code.

🏷️ #2_terms
2
How to Build a Personal Python Learning Roadmap

📖 Learn how to create a personalized Python learning roadmap. Set goals, choose resources, and build a plan to track your progress and stay motivated.

🏷️ #basics #best-practices
3
Automatic translator in Python!

We translate a text in a few lines using deep-translator. It supports dozens of languages: from English and Russian to Japanese and Arabic.

Install the library:
pip install deep-translator


Example of use:
from deep_translator import GoogleTranslator

text = "Hello, how are you?"
result = GoogleTranslator(source="ru", target="en").translate(text)

print("Original:", text)
print("Translation:", result)


Mass translation of a list:
texts = ["Hello", "What's your name?", "See you later"]
for t in texts:
    print("→", GoogleTranslator(source="ru", target="es").translate(t))


🔥 We get a mini-Google Translate right in Python: you can embed it in a chatbot, use it in notes, or automate work with the API.

🚪 @DataScience4
Please open Telegram to view this post
VIEW IN TELEGRAM
5
Bandit | Python Tools

📖 A static analysis tool that scans Python code to detect common security issues.

🏷️ #Python
1
Thonny | Code Editors & IDEs

📖 A free, open-source integrated development environment (IDE) for Python that focuses on simplicity.

🏷️ #Python
2
Notepad++ | Code Editors & IDEs

📖 A free, open-source text and source code editor for Windows.

🏷️ #Python
4
JupyterLab | Code Editors & IDEs

📖 A web-based interactive development environment (IDE) for Jupyter notebooks.

🏷️ #Python
1
Cookiecutter | Python Tools

📖 A project templating and scaffolding tool.

🏷️ #Python
1
Jupyter Notebook | Code Editors & IDEs

📖 A web-based interactive computing environment that lets you combine executable code and narrative text.

🏷️ #Python
4
Coverage.py | Python Tools

📖 A tool that measures test coverage for Python.

🏷️ #Python
1
Emacs | Code Editors & IDEs

📖 A free, open-source, highly extensible text editor and computing environment.

🏷️ #Python
Spyder | Code Editors & IDEs

📖 A free, open source integrated development environment (IDE) for Python that is tailored to scientific computing and data analysis.

🏷️ #Python
Quiz: SOLID Design Principles: Improve Object-Oriented Code in Python

📖 Learn Liskov substitution in Python. Spot Square and Rectangle pitfalls and design safer APIs with polymorphism. Test your understanding now.

🏷️ #intermediate #best-practices #python
1
Topic: Python Machine Learning

📖 Learn how to implement machine learning (ML) algorithms in Python. With these skills, you can create intelligent systems capable of learning and making decisions.

🏷️ #35_resources
2
Create a simple weather parser that displays the current temperature and weather conditions from a free API

We will write a script that retrieves weather data for your city and displays it in a convenient format.

First, we need the requests library for network operations. If it's not installed, install it via the terminal with the command:
pip install requests


Import the module and define a function that retrieves data from the Open-Meteo API (no key required) for specific coordinates:
import requests

def get_weather(lat, lon):
    url = f"https://api.open-meteo.com/v1/forecast?latitude={lat}&longitude={lon}&current_weather=true"
    return requests.get(url).json()['current_weather']


Specify the coordinates of your city (for example, Moscow):
moscow_coords = (55.75, 37.62)

Display the temperature and wind speed:
weather = get_weather(*moscow_coords)
print(f"Temperature: {weather['temperature']}°C, Wind speed: {weather['windspeed']} km/h")


🔥 Get fresh weather data without registration or passwords — useful for your own projects or bots!

🚪 @DataScience4
Please open Telegram to view this post
VIEW IN TELEGRAM
3
Advice on clean code in Python

Don't use "naive" datetime without time zones. Store and process time in UTC, and display it to the user in his local time zone

import datetime
from zoneinfo import ZoneInfo

# BAD
now = datetime.datetime.now()

print(now.isoformat())
# 2025-10-21T15:03:07.332217

# GOOD
now = datetime.datetime.now(tz=ZoneInfo("UTC"))
print(now.isoformat())
# 2025-10-21T12:04:22.573590+00:00

print(now.astimezone().isoformat())
# 2025-10-21T15:04:22.573590+03:00
2