Python Working with Strings

  • mystring = “computer”
  • mystring = ‘computer’

1) Create a String

2) Accessing a single character in a String

3) Code to access characters at different locations of a string:

4) Accessing multiple characters in a String

5) Concatenating Strings

6) Check if a character or group of characters exist in a string

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store