CJCoding With Joseph
15free / daySign inCreate account
← Back to Question List

Select topics to narrow your question pool, then enable Random to jump to a random question matching your filters.

Topics:
Python Quiz #62

Assign And Test In One Go

easyOperators

What does the walrus operator := do, and what does this program print?

📄 Code

1nums: list[int] = [3, 8, 2]
2if (n := len(nums)) > 2:
3 print(f"{n} numbers")