Загрузка...

Python Range() Confuses Most Beginners! 😵 Can You Get It Right?#Shorts #coding #education #python

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.

Видео Python Range() Confuses Most Beginners! 😵 Can You Get It Right?#Shorts #coding #education #python канала Info Studio
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки