第二章 作业

2.3 将姓名存入变量

name = "Eric"
message = "Hello " + name +"," + "would you like to learn some Python today?"
print(message)

2.4 以不同大小写方式显示人名

name = "sunshy young"
B = name.upper()
S = name.lower()
FB = name.title()
result = "The name is:"
print(result+ "\n\t" +B + "\n\t " +S +  "\n\t " +FB)

2.5 打印名言

moto = '"A person who never made a mistake never tried anything new."'
author = 'Albert Einstein'
massage = author + " once said," + moto
print(massage)

2.6 Python之禅

import this