Feb-21-2018, 06:44 AM
Hi,
Is it possible to convert the below for loop to a list comprehension and get "results"?
Is it possible to convert the below for loop to a list comprehension and get "results"?
for roll_num in range(50000): result = die_1.roll() + die_2.roll() results.append(result)