0
Functions and types and activation gibberish.
I just restarted coding in Python, then I thought if you could activate functions with their respective names. So I tried: x = input("Activate function: ") x = function(x) x() Forgive me if I suck at Python, I just restarted and am just 12.
1 Antwort
+ 3
python functions:
def fun(x):
# do something
Maybe you could compare the input to a string and if they are equal, then execute the function?