1. min = int(input("Enter min value in range : ")) max = int(input("Enter max value in range : ")) n = int(input("Enter a number : ")) if(min<=n<=max): print("In range") else: print("Not in range") 2. n = int(input("Enter a number ")) print(n//2) 3. from random import randint as r n = int(input("Enter a number : ")) result = r(n,n+10) print("A"*result) 4. start = int(input("Enter starting hour : ")) end = int(input("Enter ending hour : ")) print("Users total bill = ",end = " ") if(end - start >0): print((end - start)*5.5,"$") else: print((24 - (start - end))*5.5,"$") 5. from random import randint as r count = 0 for i in range(10000): res1 = r(1,6) res2 = r(1,6) if(res1 == res2): count += 1 print("Probability of doubles = ",end= " ") print(count/10000)