--Originally published at Programming Fundaments
Strings are some of teh most popular types in python. We can create them simply by enclosing characters in quotes (Note: double quotes are treated as single quotes)
var1 = 'Hello World!' var2 = "Python Programming"
You can also change or update these strings, to make small changes or to change it completly:
var1 = 'Hello World!' print "Updated String :- ", var1[:6] + 'Python'
Resulting in:
Updated String :- Hello Python