#--------------------------
f = 'apple \nbanana \npear'
print(f)
>> apple
>> banana
>> pear
#--------------------------
test = "\"apple\" love"
print(test)
>> "apple" love
#--------------------------
test = "\\apple\\"
print(test)
>> \apple\
#--------------------------
test = 'iloveapples'
print(test[0])
>> i
print(test[-1])
>> s
print(test[0:11:2])
>> ioepls
print(test[0:11:3])
>> ivpe
#--------------------------
test = 'i,hate,apple'
print(test.split(','))
>> ['i', 'have', 'apple']
#--------------------------
test = ['i', 'hate', 'apple']
print(', '.join(test))
>> i, hate, apple
#--------------------------
test = 'all apple hate'
print(test.startswith('all'))
>> True
print(test.endswith('apple'))
>> False
#--------------------------
test = 'i really!! hate apple'
print(test.strip('!')
>> i really hate apple
print(test.capitalize())
>> I really! hate apple
print(test.title())
>> I Really Hate Apple
print(test.upper())
>> I REALLY! HATE Apple
print(test.lower())
>> i really! hate apple
print(test.center(30))
>> ' i really! hate apple '
print(test.ljust(30))
>> 'i really! hate apple '
print(test.rjust(30))
>> ' i really! hate apple'
print(test.replace('apple', 'banana')
>> i really! hate banana