Jul-31-2020, 09:18 PM
still python chooses new number and divide the new number , in my code i successfully divide the random number to 2 but the problem it chooses new number i need the first chosen random number look i changed the code as u said
forum. ie.
additional: 10
division 2
Subtract the first number you have chosen
Hmmm let me think
Result issss
result is : 1.0
last result is 1.0 which should be 5 because additional is first random choice number which is 10 so our code sohuld give us 5 but it didnt
forum. ie.
numberList = [2,4,6,8,10] random_num = random.choice(numberList) print("additional: ", + random.choice(numberList)) input("division 2") input("Subtract the first number you have chosen") print("Hmmm let me think") time.sleep(2) print("Result issss") print(f'result is : {random_num/2}')result
additional: 10
division 2
Subtract the first number you have chosen
Hmmm let me think
Result issss
result is : 1.0
last result is 1.0 which should be 5 because additional is first random choice number which is 10 so our code sohuld give us 5 but it didnt