for x in range(0.5, 5.5, 0.5): print(x)
You can use the following code to get the desired output. from math import * def main(): # Inputs a = float(input("Enter the value of a: ")) b = float(input("Enter the value of b: ")) c = float(input("Enter the value of c: ")) d = float(input("Enter the value of d: