Create simple_jump.py

This commit is contained in:
PSBigBig 2025-08-14 19:23:07 +08:00 committed by GitHub
parent 3cf29eaa91
commit 35c7412d18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,8 @@
def jump_example(option):
table = {
"A": lambda: print("Jumped to branch A"),
"B": lambda: print("Jumped to branch B"),
"C": lambda: print("Jumped to branch C"),
}
action = table.get(option, lambda: print("Invalid option"))
action()