-
-
Save z2s8/a3380f9244970acc1720 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def kilepes(): | |
print ("A kilépés megkezdődik...") | |
def belepes(): | |
print ("Bejelentkezés...") | |
def fo_menu(navig): | |
for e in enumerate(navig): | |
print("{0}. {1}".format(str(e[0]), e[1].__name__)) | |
valasz = int(input("Add meg a menüpont számát:")) | |
navig[valasz]() | |
navig = [kilepes, belepes] | |
fo_menu(navig) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment