Name: anonymous 2013-05-03 2:02
Hey guys, just a basic Python question here....
Why can I int () the string "12" but I cannot int ()the string "12.34"? I know int () will round the decimal down, but instead of getting "12" for my answer I get an error message. Why is this?
http://gyazo.com/cc8828227b59344751332da80184406c.png
^example above
Why can I int () the string "12" but I cannot int ()the string "12.34"? I know int () will round the decimal down, but instead of getting "12" for my answer I get an error message. Why is this?
http://gyazo.com/cc8828227b59344751332da80184406c.png
^example above