Skip to content

Instantly share code, notes, and snippets.

View Robin-Andrews's full-sized avatar

Robin Andrews Robin-Andrews

View GitHub Profile
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)
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)
= 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:
= 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:
@Robin-Andrews
Robin-Andrews / hrtool.py
Created December 25, 2020 13:28 — forked from miratcan/hrtool.py
A python script to run hackerrank answers on your local. Just run it in the sample test cases folder that you downloaded from hackerrank.
import re
import glob
import subprocess
from os.path import exists
from sys import exit
INPUT_FOLDER = 'input/'
OUTPUT_FOLDER = 'output/'