Strings in Python3

In this post I will talk about Strings in Python3.

A string is a list of characters in order and a character is anything you can type on the keyboard in one keystroke, like a letter, a number, or a backslash.
Strings can have spaces:

Python recognize as strings everything that is delimited by quotation marks as seen in the example above.
Python Strings are immutable but can be manipulated, which I am gonna show you now.

Here are some examples how you can manipulate the output of a string:

This will be my last blogpost about Python3, thanks for reading and I hope you learned something.

Hinterlasse einen Kommentar

Erstelle eine Website wie diese mit WordPress.com
Jetzt starten