Loading topic
print() and len(). You are building on the idea that a string is an ordered sequence of characters. Here you learn how to pick out one character from it.3 min readprint() and len(), and read a simple try/except block. It builds on zero-based indexing, where s[0] is the first character.2 min readprint() and len(), and read a simple try/except block. It also assumes you know that indexes start at 0 and that negative indexes count from the end.2 min readprint() and len(), and read a simple try/except block. It also assumes you already know how positive and negative indexes pick one character. Here we move from one character to a range of characters.3 min readprint() and len(), and read a simple try/except block. It also assumes you know the s[start:stop] form, where start is included and stop is excluded. Here you will see what Python does when you leave one b2 min reads[start:stop] works, and how to read a basic try/except block. It covers what happens when slice bounds fall outside the string, and why that differs from indexing.3 min readstart and stop, including negative indexes and omitted bounds. It adds the third part of the slice syntax, the step.2 min reads[start:stop] slices, and how omitted bounds work. You also need print(), len() and a basic try/except.3 min readtry/except block and that you know zero-based, negative and slice indexing from the earlier chapters. Here you will see what happens when you try to change a string through an index, and how to get the change you wanted.2 min readtry/except block. Here you learn what Python builds when it sees s[a:b:c], how to store that object, and how to ask it for concrete numbers.3 min readlen(), and read a simple try/except block. Here you will see what Python's "character" means and why it sometimes differs from what a reader sees on screen.2 min read