Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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
 
PREVIOUS NEXT
Tagged: #return #returns #string #brackets #python
ADD COMMENT
Topic
Name
9+1 =