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

The average (arithmetic mean) of 0, a, and b is 2a. What is the value of b in terms of a?
The school is able to buy dozen roses for $9.36.The roses will be sold with a 150% markup. For what price the school sell 1 dozen roses
You are saving $5 each week to attend a summer program that costs $300. You already have $84. You have also received a $50 scholarship for the program. How many
the rise of fascism in germany between worl war 1 and world war 2 is often associated with?
2 Sqrt5  + 3 sqrt8 equals ?
the rise of fascism in germany between worl war 1 and world war 2 is often associated with?
A single-cell amoeba doubles every 3 days. how long would it take on amoeba to produce a population of about 10,000 amoebae?
a meter is one thousandth of a kilometer . write an equation to show the relationship between 962 meters and 0.962 kilometers
In the book night, how did Elie help his father when the selection was made?
what are five observable properties of matter?