Skip to content

Instantly share code, notes, and snippets.

@gkocjan
Created December 4, 2019 14:19
Show Gist options
  • Save gkocjan/4ccdde48d3436bbe93785916aedca899 to your computer and use it in GitHub Desktop.
Save gkocjan/4ccdde48d3436bbe93785916aedca899 to your computer and use it in GitHub Desktop.
secret_santa_original_exception.py
Traceback (most recent call last):
File "santa/not_modified.py", line 13, in <module>
random.shuffle(osoby)
File "python3.7/random.py", line 278, in shuffle
x[i], x[j] = x[j], x[i]
TypeError: 'str' object does not support item assignment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment