45.8k views
2 votes
How would I CAST this variable to a STRING?
teeth = 32

1 Answer

5 votes

Answer:

By using the str() function.

teeth = 32

print(str(teeth))

Step-by-step explanation:

The str() function returns the string version of the given object.

User Timborden
by
4.6k points