def func(i):
numbers=[]
for x in range(0,i):
print "At the top x is %d" %x
numbers.append(x)
x=x+1
print "At the bottom x is %d" %x
print "The numbers:"
for i in numbers:
print i
print "I'm going to print the numbers!"
i=raw_input("Enter the number: ")
func(i)
私はpython 3.0を使用しており、textwranglerとterminalを使ってコードしています。コードは、ゼロから入力までのすべての数値を出力することになっています。0から入力までの数字をすべて出力します
これはpython-3.xでさえありません。 –
これは質問でもありません。 –
1.質問ではありません。 2.提供された情報が正しくない(python 3ではなく)。 – ShadowFlame