string declaration in python code example
Example 1: how to create a string in python
var1 = "A String"
Example 2: define a string in python
string1 = "something"
string2 = 'something else'
string3 = """
something
super
long
"""
Example 3: initialization string python
>>> x = None
>>> print type(x)
<type 'NoneType'>
>>> x = "text"
>>> print type(x)
<type 'str'>
>>> x = 42
>>> print type(x)
<type 'int'>
Example 4: how to create a string of text in python
Example = ("Text Goes Here")