Can You Solve This? Only 10% Get It Right! 😲 | Python List Quiz #coding #python #education

preview_player
Показать описание
Can you crack this most searched Python quiz? 🧠
It’s all about how Python handles references with lists.

a = [1, 2, 3]
b = a
print(b)

❓ What will be printed?

A) [1, 2, 3]
B) [1, 2, 3, 4]
C) Error
D) [4]

✅ Correct Answer: B) [1, 2, 3, 4]
🧠 Python lists are mutable, and assigning b = a makes both point to the same object.

👇 Comment your guess before checking the pinned answer!
🔔 Subscribe for more tricky Python quizzes and coding shorts!
Рекомендации по теме
join shbcf.ru