Forum: Python Dec 2nd, 2004 |
| Replies: 12 Views: 108,884 Re: How to do Input in Python? raw_input accepts your input as a string. input accepts it as a command. so for example lets say you hadinput("somehthing")
and a hacker knowing some exploit in your code or system used the python... |
Forum: Python Nov 12th, 2004 |
| Replies: 12 Views: 108,884 Re: How to do Input in Python? the correct way is var = raw_input("Enter something: ")
print "you entered ", var
using input is unsafe as it evaluates your python code as commands and can cause someone to hack your code. |