Channel address:
Categories:
Technologies
Language: English
Subscribers:
2.57K
Description from channel
Everything you need to know about Python programming.
Admin: @haraisen
Feedback: @pythontg_feedbackbot
Ratings & Reviews
Reviews can be left only by registered users. All reviews are moderated by admins.
5 stars
1
4 stars
1
3 stars
0
2 stars
0
1 stars
0
The latest Messages 2
2021-09-06 06:41:00
https://t.me/seasoneddev - tips, news, books, quizzes, and lots of notes from the experienced guy with 10+ years in IT field.
Grow with the community!
865 views03:41
2021-08-30 15:29:24
Create Beautiful Diagrams with Python Diagrams is a Python library which lets you draw the cloud system architecture in Python code. It was born for prototyping a new system architecture design without any design tools. You can also describe or visualize the existing system architecture as well.
As you can see from the example above, it's extremely simple to create your own customized diagram. See more examples here.
Installation
pip install diagrams
GitHub
Diagrams Tutorial
#diagrams
830 views12:29
2021-08-13 18:21:00
#quiz
929 views15:21
2021-08-13 13:15:12
Complex Numbers in Python Most general-purpose programming languages have either no support or limited support for complex numbers. Python is a rare exception because it comes with complex numbers built in.
The quickest way to define a complex number in Python is by typing its literal directly in the source code:
>>> z1 = 1 + 2j
You can also use a built-in Python function, complex(). It accepts two numeric parameters. The first one represents the real part, while the second one represents the imaginary part denoted with the letter j in the literal you saw in the example above:
>>> z2 = complex(1, 2)
>>> z1 == z2
True
To get the real and imaginary parts of a complex number in Python, you can reach for the corresponding .real and .imag attributes:
>>> z2.imag
2.0
Note that both properties are read-only because complex numbers are immutable, so trying to assign a new value to either of them will fail.
In-depth tutorial on complex numbers by RealPython
#tutorial #complex
1.0K viewsedited 10:15
2021-08-08 14:58:32
Speech Recognition with Python
Have you ever wondered how to add speech recognition to your Python project? It’s easier than you might think.
SpeechRecognition is a Python library for performing speech recognition, with support for several engines and APIs, online and offline.
Speech recognition engine/API support:
CMU Sphinx (works offline)
Google Speech Recognition
Google Cloud Speech API
Wit.ai
Microsoft Bing Voice Recognition
Houndify API
IBM Speech to Text
Snowboy Hotword Detection (works offline)
Installation
pip install SpeechRecognition
GitHub
Examples
Speech Recognition in Python- The Complete Beginner’s Guide
#speechrecognition
560 viewsedited 11:58
2021-08-04 19:44:05
#quiz
1.0K views16:44
2021-08-03 15:22:16
Assert Statements in Python
Python’s assert statement is a debugging aid that tests a condition. If the condition is true, it does nothing and your program just continues to execute. But if the assert condition evaluates to false, it raises an AssertionError exception with an optional error message.
The goal of using assertions is to let developers find the likely root cause of a bug more quickly. An assertion error should never be raised unless there’s a bug in your program. They’re not intended to signal expected error conditions, like “file not found”, where a user can take corrective action or just try again.
#tips
1.4K views12:22