mirror of
https://github.com/KevinMidboe/knowit_julekalender-2018.git
synced 2025-10-29 09:40:18 +00:00
16 lines
348 B
Python
Executable File
16 lines
348 B
Python
Executable File
#!/usr/bin/env python3.6
|
|
|
|
def main():
|
|
participants = list(range(1, 1501))
|
|
while len(participants) > 1:
|
|
for pers in participants:
|
|
try:
|
|
participants.pop(participants.index(pers) + 1)
|
|
except IndexError:
|
|
participants.pop(0)
|
|
|
|
|
|
return participants.pop()
|
|
|
|
if __name__ == '__main__':
|
|
main() |