@TristinKeenan/

Months, Temps, and Tabs

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# We are going to ask how many months worth of Temperatures to Enter.
# Loop through for each month
# Ask for the average temp for each month
# Multiply each temp by 1.07
# Print the month, temp, and the new t
NumberofMonths = int(input("How many months?: "))

CountMonth = 0
CountTemp = 0
MonthNumber = 0

while CountMonth<NumberofMonths:
  MonthName = input("What month is this?: ")
  TheTemp = float(input("Temperance?: "))
  NewTemp = TheTemp * 1.07
  print("Month\tThe Temp\tNew Temp\n",MonthName,"\t",str(TheTemp),"\t",str(NewTemp))
  CountMonth = CountMonth + 1