- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
String Inside Loop 😵💫🐍 Infinite or Not? Guess the Output 🤔 #shorts #shortvideo #codermind #python
.
.
.
💡 Explanation:
This looks tricky, but here’s what actually happens:
The for loop iterates over the original string "abc"
Strings in Python are iterated once, based on their initial value
Changing s inside the loop does not change the loop sequence
Step by step:
Start: s = "abc"
i = 'a' → s = "abca"
i = 'b' → s = "abcab"
i = 'c' → s = "abcabc"
Loop ends. Final value:
abcabc
So it is not an infinite loop.
That’s why the correct option is B.
python
python programming
python string
python for loop
python string iteration
python interview questions
python quiz
python tricks
python output questions
python for beginners
coding shorts
programming shorts
learn python
coding logic
codermind
CoderMind
codermindlab
#python #coding #facebookreels #pythontricks #codingquiz
#programmingtips #learncoding #developercommunity
#pythonstring
#codermind #CoderMind #codermindlab
#pythonreels #codingreels #programmingreels #pythonquiz #pythontricks
#learnpython #logicbuilding #coderlife #techreels #developerlife
#pythonstring #codingtips
#codermind #CoderMind #codermindlab
Видео String Inside Loop 😵💫🐍 Infinite or Not? Guess the Output 🤔 #shorts #shortvideo #codermind #python канала CoderMind Lab
.
.
💡 Explanation:
This looks tricky, but here’s what actually happens:
The for loop iterates over the original string "abc"
Strings in Python are iterated once, based on their initial value
Changing s inside the loop does not change the loop sequence
Step by step:
Start: s = "abc"
i = 'a' → s = "abca"
i = 'b' → s = "abcab"
i = 'c' → s = "abcabc"
Loop ends. Final value:
abcabc
So it is not an infinite loop.
That’s why the correct option is B.
python
python programming
python string
python for loop
python string iteration
python interview questions
python quiz
python tricks
python output questions
python for beginners
coding shorts
programming shorts
learn python
coding logic
codermind
CoderMind
codermindlab
#python #coding #facebookreels #pythontricks #codingquiz
#programmingtips #learncoding #developercommunity
#pythonstring
#codermind #CoderMind #codermindlab
#pythonreels #codingreels #programmingreels #pythonquiz #pythontricks
#learnpython #logicbuilding #coderlife #techreels #developerlife
#pythonstring #codingtips
#codermind #CoderMind #codermindlab
Видео String Inside Loop 😵💫🐍 Infinite or Not? Guess the Output 🤔 #shorts #shortvideo #codermind #python канала CoderMind Lab
Комментарии отсутствуют
Информация о видео
27 декабря 2025 г. 11:40:00
00:00:13
Другие видео канала




















