Reputation:
I'm attempting to display a string that provides the type of a given variable.
When I try the following:
'This is a '+str(type(somevariable))
the output is "This is a <type 'float'>"
, instead of "This is a float"
.
How do I get the output I want?
Upvotes: 1
Views: 177