[Tutor] Help with converting a string into a integer

Carmen Salcedo asc239 at live.com
Thu Oct 31 12:52:25 CET 2013


I'm not able to post it right now. All I did to the previous program i emailed was changed isalpha() to str.isalpha.

Thanks


Sent from my iPhone

On Oct 31, 2013, at 7:09 AM, "bob gailer" <bgailer at gmail.com> wrote:

> On 10/31/2013 6:49 AM, Carmen Salcedo wrote:
>> Hi,
>> 
>> I'm using python 2.7. I'm editing the program with idle. I use windows 8.
>> 
>> I finally got the string to convert to integers, however I can't figure out how to print them in this phone number format 555-5678.
>> 
>> The numbers are printing out this way.
>> 5
>> 5
>> 5
>> 5
>> 6
> Please post the new program.
> -- 
> Bob Gailer
> 919-636-4239
> Chapel Hill NC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20131031/7aea978c/attachment-0001.html>


More information about the Tutor mailing list