Created
July 5, 2020 03:27
-
-
Save WyattCast44/967cc2102dbae2d9d2adc47a17b3229b to your computer and use it in GitHub Desktop.
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 time | |
import random | |
def getBaroAlts(): | |
baroAlt1 = random.randint(0, 10) | |
baroAlt2 = random.randint(0, 10) | |
baroAlt3 = random.randint(0, 10) | |
return baroAlt1, baroAlt2, baroAlt3 | |
def midLevelVoteValues(val1, val2, val3): | |
values = [val1, val2, val3] | |
values.sort() | |
return values[1] | |
while True: | |
baroAlt1, baroAlt2, baroAlt3 = getBaroAlts() | |
print("\nAll Baro Values:") | |
print(f"\tBaro 1: {baroAlt1}") | |
print(f"\tBaro 2: {baroAlt2}") | |
print(f"\tBaro 3: {baroAlt3}") | |
print( | |
f"Mid Level Voted Value: {midLevelVoteValues(baroAlt1, baroAlt2, baroAlt3)}") | |
time.sleep(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment