Loops arrays and two Smoking barrels.?

#-*-coding:utf8;-*-
#qpy:3
#qpy:console
import random
print("This is console module")
numbers1 = [n for n in range (1000, 10000)]
rndm = str(random.choice(numbers1))
print(rndm)
BC=str(input())
if int(BC[1]) > 0:
 for x in (numbers1):
 print(numbers1[x])

The essence, therefore, is as follows: subsequently, it will be necessary to process each element of the array from 9K numbers. Now the countdown begins in 2000, and it is necessary to 1000. How to do it?
March 19th 20 at 08:34
1 answer
March 19th 20 at 08:36
Solution
#-*-coding:utf8;-*-
#qpy:3
#qpy:console
import random
print("This is console module")
numbers1 = [n for n in range (1000, 10000+1)]
rndm = str(random.choice(numbers1))
print(rndm)
BC=str(input())
if int(BC[1]) > 0:
 for x in range(len(numbers1)):
 print(numbers1[x])

Find more questions by tags Python