#indexpython #pythonexercise #stringspython
How would you use the index operator [ ] to print out the letters w, f and the apostrophe ' from the following string?
'Those who don't learn from history are doomed to repeat it.'
______________________________________________________________________________________
A string is a sequence of characters or a line of characters. Each line of characters has indexable data within it. Using a string operator [ ] we can pull any character out of the string. The first index in a string starts with zero. For example if we have a five-character string that last index position is position 4. The value inside the string operator [ ] is called the index value. It can be a number, a variable or even an expression and it must be an integer.
Python course #2 in English 2
Python programming language course in English
#pythonexercises #pythontasks #python程式設計語言 #python程式設 #程式設計語言 #程式設
Sur cette page du site, vous pouvez voir la vidéo en ligne Strings in Python: index operator [ ] durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Olga Soboleva 03 juin 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 74 fois et il a aimé 3 téléspectateurs. Bon visionnage!