difference between input() and raw_input()
Answers
Answered by
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
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
Math,
1 month ago
Math,
1 month ago
Hindi,
1 month ago
World Languages,
3 months ago
Social Sciences,
3 months ago
French,
10 months ago