Python Learning
Open in Telegram
Python learning resources Beginner to advanced Python guides, cheatsheets, books and projects. For data science, backend and automation. Join π https://rebrand.ly/bigdatachannels DMCA: @disclosure_bds Contact: @mldatascientist
Show more5 724
Subscribers
-224 hours
-127 days
-1930 days
Posts Archive
5 724
mypy
Mypy is a static type checker for Python.
Type checkers help ensure that you're using variables and functions in your code correctly. With mypy, add type hints (PEP 484) to your Python programs, and mypy will warn you when you use those types incorrectly.
Python is a dynamic language, so usually you'll only see errors in your code when you attempt to run it. Mypy is a static checker, so it finds bugs in your programs without even running them!
Creator: Python
Stars βοΈ: 16.3k
Forked By: 2.7k
https://github.com/python/mypy
#python
ββββββββββ
Join @python_bds for more cool data science materials.
*This channel belongs to @bigdataspecialist group
5 724
What will be the output of the following Python code snippet?
x=3.3456789 '%-6.2f | %05.2f | %+06.1f' %(x, x, x)
5 724
Python Variable Types: Local & Global
There are two types of variables in Python, Global variable and Local variable. When you want to use the same variable for rest of your program or module you declare it as a global variable, while if you want to use the variable in a specific function or method, you use a local variable while Python variable declaration.
Letβs understand this Python variable types with the difference between local and global variables in the below program.
Let us define variable in Python where the variable βfβ is global in scope and is assigned value 101 which is printed in output
Variable f is again declared in function and assumes local scope. It is assigned value βI am learning Python.β which is printed out as an output. This Python declare variable is different from the global variable βfβ defined earlier
Once the function call is over, the local variable f is destroyed. At line 12, when we again, print the value of βfβ is it displays the value of global variable f=101
π Read Online
#Python #python_3
βββββββββββββ
Join @python_bds for more cool data science materials.
*This channel belongs to @bigdataspecialist group
5 724
The output of which of the codes shown below will be: βThere are 4 blue birds.β?
5 724
Python For Everybody : Python Programming MADE EASY
Python for Beginners. Python for Everybody. Data Science Python. Data Analytics Python. Web Python. AI Python. ML Python
Rating βοΈ: 4.8 out 5
Students π¨βπ : 26,389
Duration β° : 2.5 hours on-demand video
Created by π¨βπ«: Cher Hin Chong
π Course Link
β οΈ Its free for first 1000 enrollments only!
ββββββββββββββ
πJoin @bigdataspecialist for moreπ
5 724
The expression shown below results in an error.
print("-%5d0",989)
5 724
dev guide
This guide covers how to contribute to CPython. It is known by the nickname of "the devguide" by the Python core developers.
Creator: Python
Stars βοΈ: 1.6k
Forked By: 683
https://github.com/python/devguide
#python
ββββββββββ
Join @python_bds for more cool data science materials.
*This channel belongs to @bigdataspecialist group
5 724
What will be the output of the following Python expression if x=22.19?
print("%5.2f"%x)
5 724
What will be the output of the following Python expression if the value of x is 34?
print(β%fβ%x)
5 724
Which of the following formatting options can be used in order to add βnβ blank spaces after a given string βSβ?
5 724
60 Python Projects with Source Code
60 Python Projects with Source code solved and explained for free
Python has been in the top 10 popular programming languages for a long time, as the community of Python programmers has grown a lot due to its easy syntax and library support. In this article, I will introduce you to 60 amazing Python projects with source code solved and explained for free.
Python Projects with Source Code
Python Projects For Beginners:
If youβre a newbie to Python where youβve just learned lists, tuples, dictionaries, and some basic Python modules like the random module, here are some Python projects with source code for beginners for you
π Read Online
#Python #python_3
βββββββββββββ
Join @python_bds for more cool data science materials.
*This channel belongs to @bigdataspecialist group
5 724
What will be the output of the following Python expression if X=345?
print(β%06dβ%X)
5 724
What will be the output of the following Python expression if x=456?
print("%-06d"%x)
