[Tutor] Reformatting phone number

Dotan Cohen dotancohen at gmail.com
Wed Aug 20 23:27:30 CEST 2008

2008/8/21 Robert Berman <bermanrl at embarqmail.com>:
> Perhaps because preNumber is a character and not an integer?

Perhaps. In php the distinction was made by the fact that there were
no non-numerical characters in a string. I don't know enough Python to
know if this is the case. Can I declare a variable type in Python as
in C?

Dotan Cohen



More information about the Tutor mailing list