Forwarded from Learn Python Coding
Here's a small fact about Python π
The
It was introduced in Python 3.8 and allows you to assign a value to a variable and use it directly within the expression at the same time.
For example:
Without it, you would have to retrieve the value separately using
Have you ever used the
#Python #Programming #WalrusOperator #Coding #TechFacts #Python3
β¨ Join Best TG Channels https://t.iss.one/addlist/0f6vfFbEMdAwODBk
βοΈ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
The
:= operator is called the "walrus" because the symbols resemble the eyes and tusks of a walrus π¦It was introduced in Python 3.8 and allows you to assign a value to a variable and use it directly within the expression at the same time.
For example:
while (line := input("Say something: ")) != "quit":
print(f"You said: {line}")Without it, you would have to retrieve the value separately using
input(), and then check it.Have you ever used the
:= operator in your code?#Python #Programming #WalrusOperator #Coding #TechFacts #Python3
β¨ Join Best TG Channels https://t.iss.one/addlist/0f6vfFbEMdAwODBk
βοΈ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
Telegram
AI PYTHON π
Youβve been invited to add the folder βAI PYTHON πβ, which includes 15 chats.
β€7π6
π Download 10 Python books for FREE:
1. Think Python β OβReilly
https://t.co/X7y3pX68IW
2. The Big Book of Small Python Projects
https://inventwithpython.com/bigbookpython/
3. Data Structures
https://opendatastructures.org/ods-python.pdf
4. Data Science Handbook
https://t.co/9aOLdiAbim
5. Data Analysis
https://wesmckinney.com/book/
6. Data Science
https://t.co/TusyBWGfrx
7. Machine Learning
https://t.co/7veOwESe8q
8. Statistics
https://t.co/waWDQylQpY
9. Think Bayes
https://allendowney.github.io/ThinkBayes2/
10. Clean Code in Python β Packt
https://t.co/OHhVgF1L65
#Python #FreeBooks #Programming #DataScience #MachineLearning #Coding
β¨ Join Best TG Channels https://t.iss.one/addlist/0f6vfFbEMdAwODBk
βοΈ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
1. Think Python β OβReilly
https://t.co/X7y3pX68IW
2. The Big Book of Small Python Projects
https://inventwithpython.com/bigbookpython/
3. Data Structures
https://opendatastructures.org/ods-python.pdf
4. Data Science Handbook
https://t.co/9aOLdiAbim
5. Data Analysis
https://wesmckinney.com/book/
6. Data Science
https://t.co/TusyBWGfrx
7. Machine Learning
https://t.co/7veOwESe8q
8. Statistics
https://t.co/waWDQylQpY
9. Think Bayes
https://allendowney.github.io/ThinkBayes2/
10. Clean Code in Python β Packt
https://t.co/OHhVgF1L65
#Python #FreeBooks #Programming #DataScience #MachineLearning #Coding
β¨ Join Best TG Channels https://t.iss.one/addlist/0f6vfFbEMdAwODBk
βοΈ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
β€7