Python Range() Confuses Most Beginners! 😵 Can You Get It Right?
Автор: Info Studio
Загружено: 2025-06-23
Просмотров: 103
Описание:
Are you sure you understand how range() works in Python? 🐍
This is one of the most searched Python questions and often asked in coding interviews!
for i in range(1, 5):
print(i, end=" ")
[23/06, 10:59 am] Disha: ❓ What will it print?
A) 1 2 3 4 5
B) 1 2 3 4
C) 0 1 2 3 4
D) 0 1 2 3
✅ Correct Answer: B) 1 2 3 4
🧠 range(start, end) excludes the end value. So it loops from 1 to 4.
👇 Drop your answer in the comments!
🔔 Subscribe for more Python quizzes, tricks, and coding shorts.
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: