- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Python MCQ 214 - Quiz, Test Your Skills #python #pythonprogramming#pythoninterview #shorts #trending
Python MCQ 214 - Quiz, Test Your Skills #python #pythonprogramming#pythoninterview #shorts #trending
#python #pythonprogramming
Python MCQ Questions and answers,
Python MCQ , Python Programming,
Python, Python string type, python string, string, str,
string immutable sequence, string is a sequence,
string is immutable, string function, string methods,
string method replace, string operation replace,
*str.replace(old,new,occur)*
*returns a copy of string str by replacing existing old substring with new substring for the specified occurrences occur*
PCAP Exam Essentials, PCAP Essentials,
PCAP Exam Hacks, PCAP Mock Exam,
**********--------------------------***********
🎯 *s.replace(f,r,c)⇒Returns a copy of string s with all
occurrences of substring f replaced by substring r*
c→count, optional👉MCQ:212, 213
→+ve⇒FIRST c occurrences
→Omitted or -1(-ve)⇒ALL occurrences
👉 Shorts: Python String Functions - Quick Reference
⏰Python considers empty string position
1) At the start 2) Between every character
3) At the end of a string
🤔 *No. of empty string = len(string)+1*
✓ *s = 'Dewey'*
✓ *print(s.replace('','*',3))*
→'' occurs at 6 positions 🤔, c is 3→Inserts 3 '*'
→⏰ *At start→Between 'D' and 'e'→Between 'e' and 'w'*
⇒ '*D*e*wey'
💁🏻∴ Prints⇒ **D*e*wey*
💁🏻♀️ *print(s.replace('','*'))⇒ *D*e*w*e*y**
**********--------------------------***********
str.replace(old, new, count=-1)
Return a copy of the string with all occurrences of substring old replaced by new. If count is given, only the first count occurrences are replaced. If count is not specified or -1, then all occurrences are replaced.
Changed in version 3.13: count is now supported as a keyword argument.
NIELIT M3-R5 Course 'O' Level Certification,
PG TRB, TRB AP,
TN TRB Assistant Professor Computer Science,
TN TRB AP Computer Science,
GATE - Data Analytics, GATE - DA,
UGC NET, TANCET MCA, TN SET,
#pythondictionary #pythonstrings
#pythontutorial #pythonforbeginners #pythonlists
#pythonlist #pythonhacks #pythondictionaries
#pythondeveloper #pythoncoding #learnpython
#pythonquiz #python3 #pythonskills #codingpython
#pythonbasics #pythonbeginner #pythonprogramming
#datascience #dataanalytics
#codingquiz #quizchallenge #codingcommunity
#freshers #techtalk #top10
#interviewpreparation #interviewhacks #interviewquestions #interviewskills
Ace your Python exams with this MCQ marathon!
Covers various Python concepts, including input/output, data structures, and more.
#PythonMCQs #PythonInterview #CodingQuiz #PythonProgramming #TechSkills
#ssitlecturestamil @ssitlecturestamilதமிழ்
Видео Python MCQ 214 - Quiz, Test Your Skills #python #pythonprogramming#pythoninterview #shorts #trending канала SS IT Lectures Tamil தமிழ்
#python #pythonprogramming
Python MCQ Questions and answers,
Python MCQ , Python Programming,
Python, Python string type, python string, string, str,
string immutable sequence, string is a sequence,
string is immutable, string function, string methods,
string method replace, string operation replace,
*str.replace(old,new,occur)*
*returns a copy of string str by replacing existing old substring with new substring for the specified occurrences occur*
PCAP Exam Essentials, PCAP Essentials,
PCAP Exam Hacks, PCAP Mock Exam,
**********--------------------------***********
🎯 *s.replace(f,r,c)⇒Returns a copy of string s with all
occurrences of substring f replaced by substring r*
c→count, optional👉MCQ:212, 213
→+ve⇒FIRST c occurrences
→Omitted or -1(-ve)⇒ALL occurrences
👉 Shorts: Python String Functions - Quick Reference
⏰Python considers empty string position
1) At the start 2) Between every character
3) At the end of a string
🤔 *No. of empty string = len(string)+1*
✓ *s = 'Dewey'*
✓ *print(s.replace('','*',3))*
→'' occurs at 6 positions 🤔, c is 3→Inserts 3 '*'
→⏰ *At start→Between 'D' and 'e'→Between 'e' and 'w'*
⇒ '*D*e*wey'
💁🏻∴ Prints⇒ **D*e*wey*
💁🏻♀️ *print(s.replace('','*'))⇒ *D*e*w*e*y**
**********--------------------------***********
str.replace(old, new, count=-1)
Return a copy of the string with all occurrences of substring old replaced by new. If count is given, only the first count occurrences are replaced. If count is not specified or -1, then all occurrences are replaced.
Changed in version 3.13: count is now supported as a keyword argument.
NIELIT M3-R5 Course 'O' Level Certification,
PG TRB, TRB AP,
TN TRB Assistant Professor Computer Science,
TN TRB AP Computer Science,
GATE - Data Analytics, GATE - DA,
UGC NET, TANCET MCA, TN SET,
#pythondictionary #pythonstrings
#pythontutorial #pythonforbeginners #pythonlists
#pythonlist #pythonhacks #pythondictionaries
#pythondeveloper #pythoncoding #learnpython
#pythonquiz #python3 #pythonskills #codingpython
#pythonbasics #pythonbeginner #pythonprogramming
#datascience #dataanalytics
#codingquiz #quizchallenge #codingcommunity
#freshers #techtalk #top10
#interviewpreparation #interviewhacks #interviewquestions #interviewskills
Ace your Python exams with this MCQ marathon!
Covers various Python concepts, including input/output, data structures, and more.
#PythonMCQs #PythonInterview #CodingQuiz #PythonProgramming #TechSkills
#ssitlecturestamil @ssitlecturestamilதமிழ்
Видео Python MCQ 214 - Quiz, Test Your Skills #python #pythonprogramming#pythoninterview #shorts #trending канала SS IT Lectures Tamil தமிழ்
Python MCQ Questions and Answers python programming Python string method replace replace occurrences of old substring with new immutable replace substring occurrences count Empty string Quiz Python O level MCQ NIELIT Certification Interview Questions Developer Python3 learnpython pythonbasics beginners datascience dataanalytics coding challenge freshers PythonMCQ SS IT Lectures Tamil ssitlecturestamil PG TRB UGC NET TANCET MCA TN SET 파이썬 TRB Assistant Professor PCAP
Комментарии отсутствуют
Информация о видео
25 апреля 2026 г. 20:58:01
00:00:15
Другие видео канала





















