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(): | |
# User inputs | |
fileName = input('File name to open: ') | |
localMin = float(input('Low Limit: ')) | |
localMax = float(input('High Limit: ')) | |
# init variables | |
totalValues = 0 | |
sumValues = 0 | |
minValue = None |
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
# User inputs | |
fileName = input('File name to open: ') | |
localMin = float(input('Low Limit: ')) | |
localMax = float(input('High Limit: ')) | |
# Initialize variables | |
totalValues = 0 | |
sumValues = 0 | |
minValue = None | |
maxValue = None |
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
# User inputs | |
fileName = input('File name to open: ') | |
localMin = float(input('Low Limit: ')) | |
localMax = float(input('High Limit: ')) | |
# Define hFound and lFOund | |
highFound = 0 | |
lowFound = 0 | |
# Open file, and throw error if non-existant |
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(): | |
import re | |
def write(filename, content): | |
with open(filename, 'a') as file: | |
file.write(str(content) + '\n') | |
fileName = input('File name to open: ') | |
raw = input('Values to append: ') |