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

How do you solve this ? 74 - 3n = n -22
what multiplies to 24 and adds to -9
in which case, policy,or situation did the motto "kill the Indian, but save the man" play an important roll in western expansion
What are two rational numbers between the following: -0.56 & -0.65 -5.76 & -5.77 3.64 & 3.46
7 times what equals 31
A student has earned scores of 87, 81, and 88 on the first 3 of 4 tests. If the student wants an average (arithmetic mean) of exactly 87, what score must she ea
Which of the number(s) below are potential roots of the function? p(x) = x4 + 22x2 – 16x – 12
As a salesperson, you are paid $50 per week plus $3 per sale. This week you want your pay to be at least $110. What is the minimum number of sales you must make
The value of the 5s in 6,755
how do you know if a number is smaller or bigger