Python入门习题大全——索引
编写一个程序,询问用户要租赁什么样的汽车,并打印一条消息,如“Let me see if I can find you a Subaru”。
# 汽车租赁
car = input("What car do you want?\n")
print("Let me see if I can find you a " + car.title())
输出为:
(输入benz)
What car do you want?
benz
Let me see if I can find you a Benz