From b7d42287ce355ffe22a73498e4cf23e4626bc747 Mon Sep 17 00:00:00 2001 From: "Emmanuel M. Gonzalez" Date: Tue, 3 Nov 2020 17:16:01 -0400 Subject: [PATCH] FizzBuzz --- .vscode/launch.json | 16 ++++++++++++++++ fizzbuzz/drako.py | 9 +++++++++ 2 files changed, 25 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 fizzbuzz/drako.py diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..d73bf2a --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,16 @@ +{ + // Use IntelliSense para saber los atributos posibles. + // Mantenga el puntero para ver las descripciones de los existentes atributos. + // Para más información, visite: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + + { + "name": "Python: Archivo actual", + "type": "python", + "request": "launch", + "program": "${file}", + "console": "integratedTerminal" + } + ] +} \ No newline at end of file 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 -- 2.25.1