1. Home
  2. Data Science
  3. Python
  4. Which Python version introduced the walrus operator :=?

Added 25 Nov 2026

Which Python version introduced the walrus operator :=?

  1. 3.6
  2. 3.10
  3. 3.4
  4. 3.8 Correct answer

Correct answer

D. 3.8

5 views

MCQSEXAM

Explanation

Assignment expressions (PEP 572) arrived in 3.8.

Reference

Asked in: Python Interview Basics

https://docs.python.org/3/tutorial/introduction.html

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs