Program to find prime numbers in a range and time taken to calculate

import timelo = int(input(“Enter lower range: “))up = int(input(“Enter upper range: “))print(“Prime numbers between”,lo,”&”,up,”are:t”)start_time=time.time()for n in range(lo,up + 1):    if n > 1:       for i in range(2,n):           if (n % i) == 0:               break       else:           print(“ttt”,n)elapsed_time = time.time() –

Temperature Conversion Table

def Fah():    F=int(input(‘Enter the temperature on Fahrenheit(F)’))    C=(F – 32) * 5/9    K=(F – 32) * 5/9 + 273.15     print(“Fahrenheit Value :”,F)    print(“Celsius Value :”,C)    print(“Kelvin Value:”,K)def Cel():    C=int(input(‘Enter the temperature on Celsius(C)’))    F=(C * 9/5) + 32    

Use pass for an empty block

#Credits to NPTEL MOOC, Programming, Data Structures & Algorithms in #Python by Madhavan Mukund, Chennai Mathematical Institute while(True):     try:    userdata = input(“Enter a number: “)    usernum = int(userdata)  except ValueError:    print(“Not a number. Try again”)  except NameError:    pass  else: