Skip to content

Instantly share code, notes, and snippets.

def main():
while True:
how_many_loops = input("How many grades will you be entering? ")
if '.' not in how_many_loops:
for _ in range(int(how_many_loops)):
while True:
score = int(input("Please enter a grade between 0 and 100: "))
if score > 100 or score < 0:
print('Your number is out of range!', end=' ')
continue
import os
import argparse
import sys
from sh import rsync
parser = argparse.ArgumentParser()
parser.add_argument("BACKUPDIR", help="Specify the directory to backup.")
parser.add_argument("DESTINATIONDIR", help="Specify the directory where the backup is stored.")
args = parser.parse_args()
import random
f = open("enable1.txt")
words = [x.strip().upper() for x in f.readlines()]
def CreateWords(difficulty=1):
"""Take the difficulty number and a list of words, return
a list of words accordingly"""
newwords = []
i = 0