import random
Q = int(input('drawing lots!') Please enter a quota.')
numbers = list(range(1, Q + 1))
R1 = random.choice(numbers)
print('{} and''.format.(R1))
numbers.remove(R1)
R2 = random.choice(numbers)
print('It's the same pair as '{}' format(R2))
numbers.remove(R2)
The invalid syntax error appears, but I don't know what's wrong. I don't know what to do if I want to repeat picking and erasing numbers.
python3 list infinite function
Q = int(input() drawing lots!! Please enter a quota.')
One is missing
Q = int(input() drawing lots!! Please enter a quota.'))
Correct that.
578 Understanding How to Configure Google API Key
916 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
613 GDB gets version error when attempting to debug with the Presense SDK (IDE)
573 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
© 2024 OneMinuteCode. All rights reserved.