From: Oscar J Rodriguez Date: Wed, 4 Nov 2020 15:19:15 +0000 (-0500) Subject: Merge pull request #2 from DrakoPD/master X-Git-Url: https://git.josue.xyz/?p=langlearn%2F.git;a=commitdiff_plain;h=f921e27b1b874ecd0c00aa8a916ae99222bdbbb3;hp=b187571ee5834ff1bb66766cbde8538c49fed3a5 Merge pull request #2 from DrakoPD/master FizzBuzz --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..722d5e7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.vscode 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