LU06.L04: Odd or Even
def main(): number = int(input('Give a number:\n')) if number % 2 == 0: print(f'Number {number} is even.') else: print(f'Number {number} is odd.') if __name__ == '__main__': main()
modul:archiv:m319python:learningunits:lu06:loesungen:oddoreven
def main(): number = int(input('Give a number:\n')) if number % 2 == 0: print(f'Number {number} is even.') else: print(f'Number {number} is odd.') if __name__ == '__main__': main()