Answers for "how to call a string in python"

1

python call function from string

result = getattr(model_or_object, 'function')('arguments')
Posted by: Guest on June-10-2021
2

define a string in python

string1 = "something"
string2 = 'something else'
string3 = """
something
super
long
"""
Posted by: Guest on December-04-2020

Code answers related to "how to call a string in python"

Python Answers by Framework

Browse Popular Code Answers by Language