#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程式設 #程式設計語言 #程式設
In questa pagina del sito puoi guardare il video online Strings in Python: index operator [ ] della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Olga Soboleva 03 giugno 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 74 volte e gli è piaciuto 3 spettatori. Buona visione!