如何垂直打印整数?

时间:2019-05-04 22:05:25

标签: python printing integer

我需要代码的输出是垂直的。

from datetime import datetime

age = int(input("Enter your age here: "))
num = int(input("how many copies do you want? : "))

x = datetime.now()
y= (x.year - age +100)
z = str(y)

print(num * str(y))

0 个答案:

没有答案