https://www.youtube.com/watch?v=k9TUPpGqYTo&list=PL-osiE80TeTt2d9bfVyTiXJA-UTHn6WwU&index=2
printing string variable with print() function
message = 'hello,world' # message is a variable name
print(meassage) #等同于print('hello,world')
'''
out:
hello,world
'''
single quote vs double quote differences
message = 'Bobby's world'
''' which is wrong when message is been regard as '**Bobby**' '''
print(meassage)
# correct way 1
message = 'Bobby\\'s world'
# correct way 2
message = "Bobby's world"
'''
out:
hello,world
'''
multiple line string using triple double quotes
message = """Bobbys World was a good
cartoon in the 1990s"""
# or
message = '''Bobbys World was a good
cartoon in the 1990s'''
string length in string using len() function
message = 'hello,world'
print(len(message))
'''
out:
11
'''