Strings in Python

As mentioned earlier, data can have different types. One of the types is numbers, which we have already studied a little. Let's now move on to strings.

Strings are created using quotes:

pythontxt = 'abc'
print(txt) # 'abc'

Quotation marks can be not only single, but also double:

pythontxt = "abc"
print(txt) # 'abc'