Variable - String
Strings in python are surrounded by either single quotation marks, or double quotation marks.
'hello' is the same as "hello"
Error if open with single quote and end with double quotes or vice versa. Example:
'Hello" or "Hello'
You can display a string literal with the print() function:
#Example 1
a = 'Alia'
print (a)
#Output should get Alia#Example 2
Name = "John Travolta"
print (Name)
#Output should get John TravoltaLast updated