Python - Your Order Please | Codewars 6KYU

  Рет қаралды 940

Wrt Tech

Wrt Tech

Күн бұрын

Пікірлер: 3
@Squinkle
@Squinkle 2 жыл бұрын
great video! so the + 1 in len(sentence) + 1, is there because of the index being 0?
@wrttech422
@wrttech422 2 жыл бұрын
The range function is noninclusive meaning if you write: for i in range(1,10), i will be 1,2,3...9. We write len(sentence) + 1 so that the for loop will include every position from 1 to n that exists in our sentence. If we wrote for i in range(1, len(sentence)) and the length of sentence was 5, i would be 1,2,3,4 which would exclude the last position in our sentence which would be position #5.
@Squinkle
@Squinkle 2 жыл бұрын
@@wrttech422 Great explanation thank you very much!!!
5 Python Libraries You Should Know in 2025!
22:30
Keith Galli
Рет қаралды 85 М.
you will never ask about pointers again after watching this video
8:03
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
Python - Directions Reduction | Codewars 5KYU
5:58
Wrt Tech
Рет қаралды 1,1 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 692 М.
9 Hard Programming Truths
3:52
Ferguson Software Solutions, LLC
Рет қаралды 29 М.
US Gov says 'Don't use a VPN'. Should you trust it?
13:25
The Hated One
Рет қаралды 75 М.
10 Important Python Concepts In 20 Minutes
18:49
Indently
Рет қаралды 443 М.
How to STUDY so FAST it feels like CHEATING
8:03
The Angry Explainer
Рет қаралды 2,6 МЛН
Python - Snail | Codewars 4KYU
10:23
Wrt Tech
Рет қаралды 1,4 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН