Computer Science, asked by rrttyjjj, 1 year ago

what is difference between input function and raw input function in python​

Answers

Answered by LuckyYadav2578
0
●raw input() takes exactly what the user typed and passes it back as a string.

●input() first takes the raw input() and then performs an eval() on it as well. It means that python automatically identifies whether you entered a number, string or even a list.

☆☆:)
Answered by namratakadam100
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.

Similar questions