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 |
How to remove duplicates from a list in python ?
How to walk through a list in a sorted order without sorting the actual list?
Is html harder than python?
What is defined isalpha() in python?
What does by python a scripting language?
In python, are there any databases to DB packages?
what does yield function do? what is the difference between return and yield?
What module is used to execute linux commands through the python script and give us with one example
Explain what is namespace in python?
What are the benefits of using python?
Is there a way to remove the last object from a list?
How to count the occurrences of a perticular element in the list?