In Python v2,
This behavior of
input()
reads a string and tries to interpret it. For instance an answer of 2+3
to input()
will make input()
return the int
object 3
. By contrast, raw_input()
returns the entered string, no more, no less, so it would return the str
object 2+3
.This behavior of
input()
is now considered dangerous and not very usable anyway so In Python v3, input()
behaves likes v2 raw_input()
.
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Your one-stop place for all your GIMP needs: gimp-forum.net