sophiarobey
sophiarobey sophiarobey
  • 06-05-2022
  • Computers and Technology
contestada

In Python, when do we use the str( ) function

Respuesta :

YulTheNinja YulTheNinja
  • 11-05-2022

Answer:

Both str () and repr () methods in python are used for string representation of a string.

Explanation:

Though they both seem to serve the same purpose, there is a little difference between them. Have you ever noticed what happens when you call a python built-in function str (x) where x is any object you want?

Answer Link

Otras preguntas

Fractions and Percent problem.I have to write each ratio as a percent. 45 7/8 out of 100 meters... how do I solve this?
Fractions and Percent problem.I have to write each ratio as a percent. 45 7/8 out of 100 meters... how do I solve this?
in most ecosystems, what kind of organisms are producers
240 is 60% of what number
two equivalent fractions to 8/24
Fractions and Percent problem.I have to write each ratio as a percent. 45 7/8 out of 100 meters... how do I solve this?
What is the equation for 4m-5=10m-2
-0.38 written as a fraction is
12 + 5x > 2 ( 8x - 6 ) - 7xx > what number?
two equivalent fractions to 8/24