#Briston Fann
#11/5/21
#module 4 practice
#import files into jupyter notebooks
# [ ] import https://raw.githubusercontent.com/MicrosoftLearning/intropython/master/rainbow as rainbow.txt
# [ ] Open rainbow.txt in read mode & read as list with .readlines()
# [ ] sort rainbow_colors list, iterate the list to print each color
# [ ] The Weather: import world_mean_team.csv as mean_temp.txt
# [ ] The Weather: open file, read/print first line, convert line to list (splitting on comma)
# [ ] The Weather: use while loop to print city and highest monthly average temp in celsius
# [ ] use curl to download https://raw.githubusercontent.com/MicrosoftLearning/intropython/master/digits_of_pi as pi.txt
# [ ] Set up the project files and initial values
while guess.isdigit():
if digit == ".":
digit = pi.read(1)
elif digit == "\n":
seed += 1
pi.seek(seed)
digit = pi.read(1)
else:
if int(guess) == int(digit):
print(guess, "is correct")
correct += 1
else:
print("Sorry, number is", digit, "not", guess)
wrong += 1
guess = input("enter another digit guess or \"q\": ")
digit = pi.read(1)
print("\nThanks for playing\nNumber Correct:", correct, "\nNumber Incorrect:", wrong)
pi.close()