From: Emmanuel M. Gonzalez Date: Tue, 3 Nov 2020 21:16:01 +0000 (-0400) Subject: FizzBuzz X-Git-Url: https://git.josue.xyz/?p=langlearn%2F.git;a=commitdiff_plain;h=b7d42287ce355ffe22a73498e4cf23e4626bc747 FizzBuzz --- 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