X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;ds=sidebyside;f=fizzbuzz%2Fdrako.py;fp=fizzbuzz%2Fdrako.py;h=62357c1e332a2e9bcbef8fc96ca34b46c1bb3b29;hb=b7d42287ce355ffe22a73498e4cf23e4626bc747;hp=0000000000000000000000000000000000000000;hpb=6a7dfbf7c1daf22c3df8e1a196858d2cc5a06163;p=langlearn%2F.git diff --git a/fizzbuzz/drako.py b/fizzbuzz/drako.py new file mode 100644 index 0000000..62357c1 --- /dev/null +++ b/fizzbuzz/drako.py @@ -0,0 +1,9 @@ +for i in range(1,101): + no = 1 + if i % 3 == 0: + print("Fizz", end = '') + no = 0 + if i % 5 == 0: + print("Buzz", end = '') + no = 0 + print (i if no else "") \ No newline at end of file