LU05.L02: Larger Than or Equal To

def main():
    number1 = int(input('Give the first number:\n'))
    number2 = int(input('Give the second number:\n'))
 
    if number1 > number2:
        print(f'Greater number is: {number1}')
    elif number2 > number1:
        print(f'Greater number is: {number2}')
    else:
        print('The numbers are equal!')
 
 
if __name__ == '__main__':
    main()

Kevin Maurizi, Marcel Suter

  • modul/m319/learningunits/lu05/loesungen/largerthanequalto.txt
  • Zuletzt geändert: 2024/03/28 14:07
  • von 127.0.0.1