Python program to display a substring from a string | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Python program to display a substring from a string

13th Sep 2019, 4:30 PM
~taufi~
~taufi~ - avatar
2 Antworten
+ 2
string[start: end: step] Example: string = "freeCodeCamp" print(string[0:5]) Output: freeC
13th Sep 2019, 4:51 PM
KfirWe
KfirWe - avatar
+ 1
Thank you
13th Sep 2019, 4:55 PM
~taufi~
~taufi~ - avatar