Skip to content

Instantly share code, notes, and snippets.

@CalebRoskelly
Created April 8, 2022 00:17
Show Gist options
  • Save CalebRoskelly/17d862b5b6659ee8783405311ff23286 to your computer and use it in GitHub Desktop.
Save CalebRoskelly/17d862b5b6659ee8783405311ff23286 to your computer and use it in GitHub Desktop.
Name = {2:'Green',7:'Hello',4:'Goodbye',10:'Bruh',69:'LOL',3:'Fizz',5:'Buzz'}
Name2 = {12:'Stinky',14:'Clown',13:'smellyben',45:'python'}
def FIZZBUZZ(Dict, NUMBERLIST):
for i in NUMBERLIST:
print(i)
for KEEZ in Dict.keys():
if (i % KEEZ) == 0:
print(Dict[KEEZ])
FIZZBUZZ(Name,range(0,751))
FIZZBUZZ(Name2,range(5,215))
@CalebRoskelly
Copy link
Author

Me when learning to not repeatmyself ^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment