Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: String Slicing in List Comphrensions
Post: String Slicing in List Comphrensions

Hello! I have a question about the following code: Example 1 str = "hello" i = str[2] str[i] TypeError: string indices must be integersSo the result is as expected: When you attempt to slice a string...
Patroclus72790 General Coding Help 1 2,256 Mar-21-2019, 09:28 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020