To access the first n characters of a string in Python, we can use the subscript ... firstThree = str[0:3] # getting the first 3 charactersprint(firstThree).
確定! 回上一頁