Python入门习题大全——汽车租赁

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
发布了269 篇原创文章 · 获赞 18 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/qq_43479432/article/details/105420364
今日推荐