Computer Science, asked by 725yadavraj, 3 months ago

difference between input() and raw_input()​

Answers

Answered by kishorerepalle1234
0

Answer:

Basically, the difference between raw_input and input is that the return type of raw_input is always string, while the return type of input need not be string only. Python will judge as to what data type will it fit the best.

Answered by atrs7391
1

The raw_input() takes / returns input type as string whereas input() judges the data type and returns which it fits well.

NOTE: raw_input() doesn't exists in Python 3 and above. raw_input() is now renamed as input() only.

Similar questions