Python program to display a substring from a string | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Python program to display a substring from a string

13th Sep 2019, 4:30 PM
~taufi~
~taufi~ - avatar
2 Réponses
+ 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