Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

input():

Vinay Rawal answered on April 1, 2023 Popularity 6/10 Helpfulness 1/10

Contents


More Related Answers

  • input js
  • how to get the input of a textbox in html
  • javascript input
  • html <input>
  • input pythhon
  • input
  • input tags html
  • input TEXT
  • input html
  • input code
  • javascript input
  • input page
  • The <input> Element

  • input():

    0

    input() function can be used to read data directly in our required format.We are not

    required to perform type casting.

    x = input("Enter Value)

    type(x)

    10  int

    "durga" str

    10.5  float

    True  bool

    ***Note:

     But in Python 3 we have only input() method and raw_input() method is not available.

     Python3 input() function behaviour exactly same as raw_input() method of Python2.

    i.e every input value is treated as str type only.

     raw_input() function of Python 2 is renamed as input() function in Python 

    Popularity 6/10 Helpfulness 1/10 Language python
    Source: Grepper
    Tags: python
    Link to this answer
    Share Copy Link
    Contributed on Apr 01 2023
    Vinay Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.