Show pagesourceOld revisionsBacklinksExport to PDFMoodle_LinkBack to top Share via Share via... Twitter LinkedIn Facebook Pinterest Telegram WhatsApp Yammer Reddit TeamsRecent ChangesSend via e-MailPrintMoodle_LinkPermalink × LU05.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() M319-LU05 Kevin Maurizi, Marcel Suter modul/m319/learningunits/lu05/loesungen/oddoreven.txt Last modified: 2023/11/13 08:56by 127.0.0.1