TGViewer
Learn Python Coding Learn Python Coding @pythonre · 40.7K subscribers
Post #9838 6.35K
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.
  • ❤ 4
  • 👍 1
More from @pythonre
  1. Oct 7, 2026A distinctive bot for subscribing to courses on the most popular educational platforms acr…
  2. Oct 7, 2026Python Lists: A Quick Reference 🐍 * Definition: Lists are ordered, mutable collections th…
  3. Oct 7, 2026📱 270 tools for Python developers The repository contains: 🫡 Linters and formatters; 🫡…
  4. Oct 7, 2026Hands On Python Data Science - Data Science Bootcamp Master Python for Data Science with R…
  5. Oct 6, 2026Post #9851
  6. Oct 6, 2026Python For Beginners Course In-Depth Python: A Comprehensive Introduction to Fundamental P…
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 →