Jul-31-2020, 08:18 PM
The problem here is i successfully pick a random number from list but when i want o divide that number to 2 just like last lane of my code python chooses other random number and divide that number to 2
Thanks in advance for answers.
forum. ie.
Thanks in advance for answers.
forum. ie.
import random numberList = [2,4,6,8,10] random_num = random.choice(numberList) print(random.choice(numberList)) print("result is : " + str(random_num))/2