CodingBat - double_char (Python)

preview_player
Показать описание
This video gives a detailed solution to double_char in coding bat. It uses Python.
Рекомендации по теме
Комментарии
Автор

I searched this coding bat exercise to get a quick answer but stayed to watch the explanation. It was a good, thorough and quick explanation!

brooklynclarke
Автор

Hey, Paul
I am a beginner. Although I understand the basic concepts, I am almost always confused in putting things together. For example: I know LOOPS and STRING INDEXING but doing an sample problem like double_char always confuses me. Are there any resources that you'd recommend that breaks down problems with a logical explanation without just giving the answer?

wahid
Автор

def double_char(str):
result = ''
for i in str:
result += i * 2
return result

ryan
Автор

legends are watching this on 2021🤣🤣🤣🤣😂😂😅

Takatou__Yogiri
Автор

Why do you need the 0, and the, 1 in the range? What do they do? I removed them and the code still works.

bob
Автор

I run the same code in my University compiler and always get that error
Test Failed: object of type 'type' has no len()
Can you please tell me why I am getting this

shahzararif
join shbcf.ru