Artificial Intelligence, Machine Learning, Data Science, Python, Programming.
Decimal('25.31')), ('Avoid American', Decimal('514.63'))]" query_results_str = query_results query_results_str = query_results_str.replace("Decimal('", "").replace("')", "") # Try to safely evaluate the string to a list of tuples try: query_results_evaluated = eval(query_results_str, {'Decimal':