how to define string in python code example
Example 1: how to create string in python
string = "this is string"
#or
string = 'this is also string'
Example 2: string in python
# ways to dfefine string in python
string = "String"
string = str(string)
# Can Add strings
s1 = "Str"
s2 = "ing"
s = s1 + s2 # "String"
Example 3: how to create a string in python
var1 = "A String"
Example 4: how to write string in python
#name of the variable = "string"
name = "john"