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.L01 Vornamen Blockly Python def firstnames(): names = [] i = 0 while i<5: name = input("Vorname > ") names.append(name) i+=1 index = int(input("Welcher Vorname soll ausgegeben werden (1-5) > ")) print (names[index-1]) if __name__ == "__main__": firstnames() modul/archiv/m319python/learningunits/lu05/loesungen/vornamen.txt Last modified: 2023/11/13 08:56by 127.0.0.1