This file contains hidden or 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
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 |
This file contains hidden or 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 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() |
This file contains hidden or 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 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 |