Computer Science, asked by vaishnavigupta63, 6 months ago

what value type does input() return?​

Answers

Answered by Agastya0606
1

The input() function returns string value.

  • The Python input () operation is employed to urge input from the user. permits user input and browse queue. once reading the information, it converts it into a personality unit and returns that.
  • Returns user input once changing to character unit. The input methodology () returns the worth of a unit. Therefore, if we wish to perform arithmetic functions, we'd like to distribute the worth 1st.

#SPJ3

Answered by shownmintu
0

what value type does input() return?​

    Enter() Return Value

The enter() feature reads a line from the enter (commonly from the person), converts the road right into a string via way of means of casting off the trailing newline, and returns it.

                                   In Python, we use enter() feature to take enter from the person. Whatever you input as enter, the enter feature converts it right into a string. If you input an integer price nonetheless enter() feature convert it right into a string. Syntax: enter(set off)

What does input () function does give an example?

  • ' Above, the enter() feature takes the person's enter withinside the subsequent unmarried line, so some thing person writes in a signle line could be assign to to a variable user_input .
  • So, the price of a user_input could be some thing person has typed. The following instance demonstrets a way to use the optionally available set off parameter.

#SPJ2

Similar questions