Comment Comment by basch Since its unclear whats going on, Gemini first gave me some python.import randomrandom_number = random.randint(1, 10) print(f"{random_number=}")Then it stated the output.Code output random_number=8"This time, the dice landed on 8."Code output random_number=9"Your next random number is 9."I would guess its not actually executing the python it displayed? Just a simulation, right? parent basch 8 months ago
import random
random_number = random.randint(1, 10) print(f"{random_number=}")
Then it stated the output.
Code output random_number=8
"This time, the dice landed on 8."
Code output random_number=9
"Your next random number is 9."
I would guess its not actually executing the python it displayed? Just a simulation, right?