This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i in range(1, 51): | |
if i % 3 == 0 and i % 5 == 0: | |
print("fizzbuzz") | |
elif i % 5 == 0: | |
print("buzz") | |
elif i % 3 == 0: | |
print("fizz") | |
else: | |
print(i) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i in range(1, 51): | |
if i % 3 == 0: | |
print("fizz") | |
elif i % 5 == 0: | |
print("buzz") | |
elif i % 3 == 0 and i % 5 == 0: | |
print("fizzbuzz") | |
else: | |
print(i) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= int(input("Please enter your percentage grade: ")) | |
if result > 80: | |
print("Grade A") | |
elif result >= 70: | |
print("Grade B") | |
elif result >= 60: | |
print("Grade C") | |
elif result >= 50: | |
print("Grade D") | |
else: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= int(input("Please enter your percentage grade: ")) | |
if result < 50: | |
print("Grade U") | |
elif result >= 50: | |
print("Grade D") | |
elif result >= 60: | |
print("Grade C") | |
elif result >= 70: | |
print("Grade B") | |
else: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import glob | |
import subprocess | |
from os.path import exists | |
from sys import exit | |
INPUT_FOLDER = 'input/' | |
OUTPUT_FOLDER = 'output/' |