Raw_input... Whats that Is that coud u explain | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Raw_input... Whats that Is that coud u explain

For what is raw_input

15th Feb 2017, 11:12 AM
lux arcadia
lux arcadia - avatar
5 Answers
+ 3
'raw_input()' is use in Python 2.x In Python 3.x, you'll use 'input()'. ... while 'input()' in Pyhton 2.x is equivalent to 'eval(input())' in Python 3.x ^^
15th Feb 2017, 12:04 PM
visph
visph - avatar
+ 3
Like visph said - raw_input is a command in Python 2.x It does the same, as Python 3.x's print() - it prints its argument to the console :)
15th Feb 2017, 1:04 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
0
I heard that input() in Python 2.X has critical exploit that hackers might feel useful. So it is reccomanded not using it. Because of that, in Pythin 3, input() works same as raw_input() and exploitable input function has been removed.
15th Feb 2017, 4:58 PM
Sungmin Woo
Sungmin Woo - avatar
- 1
@visph thank you for the comment but it does not help me but thank u
15th Feb 2017, 12:52 PM
lux arcadia
lux arcadia - avatar
- 1
Aaaaaahhh i'm so stupid... Understood
15th Feb 2017, 1:06 PM
lux arcadia
lux arcadia - avatar