Skip to content

Instantly share code, notes, and snippets.

@ibotdotout
ibotdotout / fizzubzz.py
Last active August 29, 2015 14:24
FizzBizz Nested If
x = 105
if x%7 == 0 and x%3 == 0 and x%5 == 0:
print("FizzBuzzBang")
elif x%7 == 0 and x%5 == 0:
print("BuzzBang")
elif x%7 == 0 and x%3 == 0:
print("FizzBang")
elif x%3 == 0 and x%5 == 0:
print("FizzBuzz")
#!/usr/bin/env python
import os
import sys
import time
from watchdog.observers import Observer
from watchdog.events import PatternMatchingEventHandler
def when_file_changed(filename):
"""