TGViewer
Machine Learning with Python Machine Learning with Python @codeprogrammer · 68.6K subscribers
Post #5528 4.48K

Forwarded from Learn Python Coding

Here's a small fact about Python 🐍

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.me/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.
  • ❤ 6
  • 👍 6
More from @codeprogrammer
  1. Oct 6, 2026Python For Beginners Course In-Depth Python: A Comprehensive Introduction to Fundamental P…
  2. Oct 5, 2026https://t.me/UdemySybot?start=ref_418788114 Get Free Courses 😁
  3. Oct 5, 2026🚀 ChatGPT Plus & Gemini AI Pro🤖 ChatGPT Plus — 1 Month: $8 ✨ Gemini AI Pro — 18 Months:…
  4. Oct 4, 2026I found a great resource for interactive learning about machine learning and AI – VizLearn…
  5. Oct 3, 2026This channels is for Programmers, Coders, Software Engineers. 0️⃣ Python 1️⃣ Data Science…
  6. Oct 3, 2026"How to Train a Neural Network" is a concise summary of the MIT course lectures on deep le…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →