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.

21st May 2020, 10:15 AM
Adriel Low
Adriel Low - avatar
1 ответ
+ 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?
21st May 2020, 3:49 PM
Lisa
Lisa - avatar