Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Whats the difference between input() and raw_input()?



Whats the difference between input() and raw_input()?..

Answer / Saurabh Gaur

In Python 2, input() is equivalent to raw_input(). However, in Python 3, input() interprets the user's input as a string, while raw_input() keeps it as a raw bytestring. To make input() behave like raw_input(), you can use input('') or input().decode('utf-8').

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

How to remove duplicates from a list in python ?

1 Answers  


How to walk through a list in a sorted order without sorting the actual list?

1 Answers  


Is html harder than python?

1 Answers  


What is defined isalpha() in python?

1 Answers  


What does by python a scripting language?

1 Answers  


In python, are there any databases to DB packages?

1 Answers  


what does yield function do? what is the difference between return and yield?

1 Answers  


What module is used to execute linux commands through the python script and give us with one example

1 Answers  


Explain what is namespace in python?

1 Answers  


What are the benefits of using python?

1 Answers  


Is there a way to remove the last object from a list?

0 Answers  


How to count the occurrences of a perticular element in the list?

1 Answers  


Categories