提问
print("How old are you?")
age = input()
print("How tall are you?")
height = input()
print("How much do you weight?")
weight = input()
print("So,you're %r old,%r tall and %r heavy."% (age,height,weight))
另外,网上还有好多关于提问的有趣的例子,有的需要结合模块
python简单好玩的编程代码,python编写有趣的代码_python有趣的简单代码-CSDN博客
利用python内置的日历模块,可以打印出某年某月的日历;
import calendar
year =int( input("Enter the year of the required calendar "))
month = int( input("Enter the month of the required calendar "))
print(calendar.month(year,month))