What’s the difference between raw_input() and input() in python3.x?



What’s the difference between raw_input() and input() in python3.x?..

Answer / Rajnish Kumar

In Python 3.x, `raw_input()` has been replaced by `input()`. The main difference is that `raw_input()` does not decode the input and expects a bytes object as an argument, while `input()` decodes the input into a string.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

What is the best way to get the first five entries of a data frame?

2 Answers  


What is strip in python?

1 Answers  


What is the difference between the shallow copy and deep copy in python?

1 Answers  


Do you know what is numpy and how is it better than a list in python?

1 Answers  


What applications use python?

1 Answers  


Is python is a case sensitive?

1 Answers  


How does determine the python manage the memory?

1 Answers  


What are pytest fixtures?

1 Answers  


What is subclass in python?

1 Answers  


Explain python functions?

1 Answers  


Can we develop a web application using Python

1 Answers  


Describe how exceptions are handled in python.

1 Answers  


Categories