# Create and initialize a variable named ‘start_time’ with the current time.
#Create an array named ‘r_nums’ that will hold 600,000 numbers.
#Using a loop, generate a random number between 2617 and 7162 (inclusive) and add the random number to r_nums – iterate 600,000 times.
#Create an arrayList named ‘even_nums’.
#Using a different loop than the one above, traverse r_nums to check for even numbers. If a number is even, append its index value to even_nums.
#Create a variable named ‘even_num_count’ and initialize with the number of elements in even_nums.
#Create and initialize a variable named ‘end_time’ with current time.
#Create a variable named ‘total_time’ and initialize with the difference between end_time and start_time.
#Run the program and print the following values:
#start_time
#even_num_count
#end_time
#total_time (include milliseconds)
from datetime import datetime
start_time = datetime.today()
r_nums = []
even_nums = []
from random import randint
num = randint(2167,7612)
for num in range(600000):
r_nums.append(randint(2167,7612))
for num in r_nums:
if num % 2 == 0:
even_nums.append(num)
even_num_count = len(even_nums)
end_time = datetime.today()
total_time = end_time - start_time
print("start_time:",start_time)
print("end_time:",end_time)
print("total_time:",total_time)
print("even_num_count:",even_num_count)