Run
# Given variables x = 1234 y = 5072 # Formatted string result = f"Summary\nTotal earnings : ${y}\nTotal spends : ${x}" # Print resulting string print(result)
Output