2-1.
message='hello world'
print(message)
2-2.
message='hello world'
print(message)
message='good morning'
print(message)
2-3
name='Mike'
print('Hello '+name+', would you like to learn some Python today?')
2-4
name='mike'
print(name.lower())
print(name.upper())
print(name.title())
2-5
print('Albert Einstein once said,"A person who never made a mistake never tried anything new."')
2-6
famous_person='Albert Einstein'
message='A person who never made a mistake never tried anything new.'
print(famous_person+' once said, "'+message+'"')
2-7
name='\tKate \n'
print(name)
print(name.lstrip())
print(name.rstrip())
print(name.strip())
2-8
print(3+5)
print(10-2)
print(2*4)
print(16/2)
2-9
num=7
print('I like '+str(num))
2-10
#打印计算结果
print(3+5)
print(10-2)
print(2*4)