Answers for "return string inside brackets"

0

return returns string with brackets python

Instead of: return ("Temperature in Fahrenheit Shall Be: ", far)
You need to turn your variable to a string and then use the + operator:
return "Temperature in Fahrenheit Shall Be: " + str(far)

Source: https://stackoverflow.com/questions/55490290/python-return-statement-includes-brackets
Posted by: Guest on July-06-2021

Code answers related to "return string inside brackets"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language