Raspberry Pi - LED and Button Projects
What will be the output of this code snippet in a reaction time game?
import time
start = time.time()
# LED lights up here
input('Press Enter as fast as you can!')
end = time.time()
print(f'Reaction time: {end - start:.2f} seconds')