[Tutor] Beginner problem: name 'convertToFahrenheit' is not defined
Kent Johnson
kent37 at tds.net
Sun Aug 17 02:11:22 CEST 2008
On 8/16/08, Lie Ryan <lie.1296 at gmail.com> wrote:
> never use input(), use raw_input() instead. input() parses the string it
> receives first, and may (read: WILL in the hands of certain persons)
> allow user to input certain strings that get parsed into dangerous
> codes. Use int(raw_input()) instead to convert the result of raw_input
> (i.e. string) into a number (i.e. integer).
Probably float(raw_input()) would be better in this program.
Kent
More information about the Tutor
mailing list