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

a House sits on a 5/8 acre lot and 1/2 of the lot is lawn. 2/3 of lawn was mowed. how much was mowed?
find the distance cd rounded to the nearest tenth c=(5,6) d=(2,2) cd=?
Modernists works could best be described as?
Which of the following best explains how ecological tourism, such as whale watching, is a biological resource that benefits the environment? A.) It encourages
The rmdir command (with no options) can only remove empty directories a. True b. False
What is the reproductive cell that determines the genetic sex of the offspring called?
A survey claims that the percent of customers who favor Cheerios cereal over Fruit Loops cereal is likely between 78.01% and 45.99%. How many people were survey
3. To what does the term home front refer? What was happening on the American home front? (world war 2)
F(x)=4^x-8 g(x)= 5x+6 find (f-g)(x)
Find the domain of f(x)= 1 / squareroot of 3-2x.
good job