To access the first n characters of a string in Python, we can use the subscript syntax [ ] by passing 0:n as an arguments to it.
確定! 回上一頁