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
The easiest way to prepare data in Python

πŸ”ΈDataPrep
is an open-source python library that allows you to prepare your data with just a few lines of code.

βš™οΈInstallation
pip install dataprep

The library consists of 3 main modules:
1. DataPrep.Connector – API wrapper that speeds up development by standardizing calls to multiple APIs as a simple workflow. Basically, it allows you to collect data from common data sources.
2. DataPrep.EDA allows you to perform Exploratory Data Analysis with a few lines of code in seconds.
3. DataPrep.Clean aims to provide a large number of functions with a unified interface for cleaning and standardizing data of various semantic types in a Pandas or Dask DataFrame.

πŸ”—GitHub
πŸ”—Docs

#dataprep #datascience
What is the output of the code given above?
Anonymous Quiz
6%
1
6%
2
19%
3
47%
None
22%
Error
Text-to-Speech

πŸ”ΈgTTS
(Google Text-to-Speech) is a Python library and CLI tool to interface with Google Translate's text-to-speech API.

βš™οΈInstallation
pip install gTTS

The gTTS API supports several languages including English, Hindi, Tamil, French, German and many more. The speech can be delivered in any one of the two available audio speeds, fast or slow.

πŸ”—GitHub

#gtts #texttospeech
What is the output of the code given above?
Anonymous Quiz
12%
10 15 20
9%
5 25 125
60%
25 125 625
12%
None None None
7%
Error
is vs ==

❓You might have heard somewhere that the Python identity operator (is) is faster than the equality operator (==), or you may feel that it looks more Pythonic. But actually there's a subtle difference between this operators.

❗️The == operator compares the value or equality of two objects, whereas the is operator checks whether two variables point to the same object in memory. In the vast majority of cases, this means you should use the equality operators == and !=, except when you’re comparing to None.

#tips
Comprehensive Python Cheatsheet πŸ“š

Without a doubt, this the biggest Python cheat sheet I've ever seen.

This guide essentially breaks down Collections Types, Syntax, System commands, Data Types, Advanced commands and a lot of the basics that are pretty much a requirement to know. Whether you plan on going into software engineering, data science or anything else, learning these concepts will be the fundamental building blocks for your programs.

πŸ”—Comprehensive Python Cheatsheet
πŸ”—GitHub repo

P.S. Thank @b0nd07 for sharing this πŸ€—

#materials #cheatsheet
What is the output of the code given above?
Anonymous Quiz
15%
0 1 4
11%
1 9
9%
0 4
12%
1 81
20%
0 81
33%
Error
This media is not supported in your browser
VIEW IN TELEGRAM
Create a platformer game with Python πŸ‘Ύ

πŸ”ΈArcade is an easy-to-learn Python library for creating 2D video games. It is ideal for beginning programmers, or programmers who want to create 2D games without learning a complex framework.

βš™οΈInstallation
pip install arcade

πŸ”—Arcade Academy Homepage
πŸ”—In-depth guide

#arcade #gamedev
Game Development with Pygame πŸ“Ί

In this series, you will use pygame to learn the fundamentals of game development by creating 3 types of games: shoot 'em up, platformer and tile-based game.
Even though the playlist is a quite old (last updated on Dec 17, 2016), this is the most complete tutorial on the pygame library. I've used it to learn Python game development as a part of university research project last year, so I definitely recommend it.

1. Game Development 1-1: Getting Started with Pygame [YouTube]
2. Game Development 1-2: Working with Sprites [YouTube]
...
58. Tile-based game Part 22: Game Over [YouTube]

πŸ”—Full YouTube playlist

#materials #pygame #gamedev
What is the output of the code given above?
Anonymous Quiz
32%
(1, 2, 3, 4, 5, 6)
7%
3
10%
4
28%
6
8%
(1, 2, 3)
16%
Error
Build Your Website Quickly and Easily

πŸ”ΈFlask
is a popular Python web framework, designed to easily build web applications, with the ability to scale up to complex ones.

βš™οΈInstallation
pip install Flask

It gives developers flexibility and is a more accessible framework for new developers since you can build a web application quickly using only a single Python file. Flask is also extensible and doesn’t force a particular directory structure or require complicated boilerplate code before getting started.

πŸ”—Docs
πŸ”—Official tutorial
πŸ”—GitHub
πŸ”—Compilation of Flask tutorials

#flask #web