Fahrenheit To Celsius Converter

Enter a number in Fahrenheit or Celsius and convert it to one or the other

num = int(raw_input("Give me a number to convert: ")) fc = raw_input("Is this number F or C? ") if fc.lower() == "F": print(str((num - 32) / 1.8) + " degrees Celsius ") if fc.lower() == "C": print(str((num * 1.8) + 32) + " degrees Fahrenheit ")

12 Month Calendar

Enter a year and this code will give you the calendar for that yearimport calendar years = int(raw_input("Give me a year: ")) for i in range(1,13,1): print(calendar.month(years, i))

import calendar years = int(raw_input("Give me a year: ")) for i in range(1,13,1): print(calendar.month(years, i))
1