String in Python

String is basically “sequence of characters”. Characteristics of String: It is used to refer to…