0
Task using boolean types
Let's say I have a string str that contains a logical formula. If i know the formula I just do print((True or False) and True) But if I have only a string that contains the formula like str = "(True or False) and True)" How to convert a string to a command, a boolean variable? bool() wont work, it is sth different.
1 Antwort
0
https://stackoverflow.com/questions/701802/how-do-i-execute-a-string-containing-JUMP_LINK__&&__python__&&__JUMP_LINK-code-in-python
not sure about this but it may help