Python Universe
1.99K subscribers
103 photos
1 video
1 file
55 links
Everything you need to know about Python programming.

Admin: @haraisen
Feedback: @pythontg_feedbackbot
Download Telegram
Turtle🐢

🔸Turtle is a pre-installed Python library that enables users to create pictures and shapes by providing them with a virtual canvas. It was part of the original Logo programming language developed by Wally Feurzig and Seymour Papert in 1966.

Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an import turtle, give it the command turtle.forward(15), and it moves (on-screen!) 15 pixels in the direction it is facing, drawing a line as it moves. Give it the command turtle.right(25), and it rotates in-place 25 degrees clockwise. By combining together these and similar commands, intricate shapes and pictures can easily be drawn.

🔗Docs
🔗The Beginner's Guide to Python Turtle (RealPython)

#turtle #graphics
What is the output of the code given above?
Anonymous Quiz
15%
0
30%
Infinite recursion
6%
6
43%
24
6%
120
​​Python Learning Courses provided by Microsoft 📚

Recently, I found out that Microsoft provides quality online courses related to Python on Microsoft Learn.
Microsoft Learn is a free online platform that provides access to a set of training courses for the acquisition and improvement of digital skills. Each course is designed as a module, each module contains different lessons and exercises. Below are the modules related to Python learning.

🟢Beginner
1
. What is Python?
2. Introduction to Python
3. Take your first steps with Python
4. Set up your Python beginner development environment with Visual Studio Code
5. Branch code execution with the if...elif...else statement in Python
6. Manipulate and format string data for display in Python
7. Perform mathematical operations on numeric data in Python
8. Iterate through code blocks by using the while statement
9. Import standard library modules to add features to Python programs
10. Create reusable functionality with functions in Python
11. Manage a sequence of data by using Python lists
12. Write basic Python in Notebooks
13. Count the number of Moon rocks by type using Python
14. Code control statements in Python
15. Introduction to Python for space exploration
16. Install coding tools for Python development
17. Discover the role of Python in space exploration
18. Crack the code and reveal a secret with Python and Visual Studio Code
19. Introduction to object-oriented programming with Python
20. Use Python basics to solve mysteries and find answers
21. Predict meteor showers by using Python and Visual Studio Code
22. Plan a Moon mission by using Python pandas

🟠Intermediate
1. Create machine learning models
2. Explore and analyze data with Python
3. Build an AI web app by using Python and Flask
4. Get started with Django
5. Architect full-stack applications and automate deployments with GitHub

#materials
What is the output of the code given above?
Anonymous Quiz
28%
BIG Python
20%
small Python
23%
Error: comparision is not supported
29%
Python!
Video editing with Python 🎞

🔸MoviePy is a Python module for video editing, which can be used for basic operations (like cuts, concatenations, title insertions), video processing, or to create advanced effects. It can read and write the most common video formats, including GIF.

⚙️Installation
pip install moviepy

The key objects in MoviePy are VideoClips, which contains video and sound. In a typical MoviePy script, you load video or audio files, modify them, put them together, and write the final result to a new video file.

🔗Docs
🔗GitHub
🔗Editing Video with Python + MoviePy Tutorial

#moviepy #graphics
PyQt5 GUI Thursdays 📺

PyQt
is a Python interface for Qt, one of the most powerful, and popular cross-platform GUI library. PyQt is a blend of Python programming language and the Qt library. In this video series you will learn how to create basic graphical applications with the help of PyQt.

1. How To Install PyQt5 And Build Simple GUI App [YouTube]
2. How To Create Combo Boxes [YouTube]
3. How To Create Spin Boxes [YouTube]
...
20. CheckBoxes [YouTube]

🔗Full Playlist

#materials
What is the output of the code given above?
Anonymous Quiz
45%
True
37%
False
7%
None
11%
Error
Build Your Data Science Web App with Dash

🔸Dash
is an open source library for building web analytic applications. Written on top of Flask, Plotly.js, and React.js, Dash is ideal for building data visualization apps with highly custom user interfaces in pure Python. It's particularly suited for anyone who works with data in Python.

⚙️Installation
pip install dash
pip install dash-html-components
pip install dash-core-components
pip install dash-table

Dash apps are rendered in the web browser. You can deploy your apps to servers and then share them through URLs. Since Dash apps are viewed in the web browser, Dash is inherently cross-platform and mobile ready.

🔗Docs
🔗App Examples
🔗Detailed tutorial by RealPython

#dash #web #charting
What is the output of the code given above?
Anonymous Quiz
34%
srrngg
15%
ttring
13%
ttinng
38%
Error
What to do if your Python code isn't working?

🔗High-resolution version

#materials #cheatsheet
How to create an algorithmic trading bot with Python 💰

♦️In this series you will learn how to create your own trading bot with Python. This is a really cool project, but also definitely not for beginners. In order to complete this bot, you will need to create a complex application using the following Python modules:
▪️Pandas
▪️Flask
▪️Plotly

📚Contents
1. Overview
2. Design
3. Getting financial data into Python
4. Open a trade using the MT5 API with Python
5. Close a trade with MT5 using Python
6. Creating an algotrader/trading bot with Python – Part 1
7. Creating an algotrader/trading bot with Python – Part 2
8. Creating an algotrader/trading bot with Python – Part 3
9. Creating a strategy for your algorithmic trading bot – Part 1
10. Creating a strategy for your algorithmic trading bot – Part 2
11. Dynamically calculate lot size for your algorithmic trading bot
12. Send messages from Python to Slack
13. Send an email from Python
14. Trade management for the algorithmic trading bot

#materials #trading
Make Exceptions Great Again

🔸Pretty-errors
is a Python module that basically the exception output to make it legible.

⚙️Installation
pip install pretty-errors

If you want pretty_errors to be used whenever you run a python script you must add it to your python startup procedure. You can do so easily by running:
python -m pretty_errors
Or you can just simply import it:
import pretty_errors

🔗GitHub

#prettyerrors