Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Filtering Dictionary in Python 3.7
import random
data = {
1: 1,
2: 2,
3: 3
# This will raise an Error
for k in data:
rand = random.randint(4, 2^31)
data[rand] = rand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.