# I am not getting a good output through this what could i be doing wrong
# also i'm fairly new to this and don't understand why the indents and tags aren't showing up sorry in advance
# also i'm fairly new to this and don't understand why the indents and tags aren't showing up sorry in advance
largest = None smallest = None while True: num = input("Enter a number: ") if num == "done" : break try: fval = float(num) except: print('Invalid input') continue if largest is None : largest = num elif num > largest : largest = num if smallest is None : smallest = num elif num < smallest : smallest = num print("Maximum is", largest) print("Minimum is", smallest)