# problem 6: """ Write a program that: Asks the user to input two different numbers and stores them in two variables Outputs the biggest number entered """ while True: try: num1=input("Please enter the first number: ") num2=input("Please enter the scond number:") num1=int(num1) num2=int(num2) if num1 == num2: print("Please write different values>") else: if num1>num2: print(num1) break elif num2>num1: print(num2) break except ValueError: print("Conversion faild")
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter