Re: [Tutor] What are your favourite unofficial resources

2014-07-07 Thread Albert-Jan Roskam
>> On 30 June 2014 04:11, Alan Gauld wrote: >>> I'm looking for tips for an appendix to a book that >>> I'm working on. >>> >>> What are the best unofficial (ie not python.org) >>> resources for people who have learned the basics >>> but are not experts yet? ie Typical tutor list >>> "grad

Re: [Tutor] Python Socket Error: Connection refused

2014-07-07 Thread Dave Angel
Pamela Wightley Wrote in message: > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor > You apparently are running Windows, and in a corporate environment. You d

Re: [Tutor] Python Socket Error: Connection refused

2014-07-07 Thread Matthew Ngaha
On Mon, Jul 7, 2014 at 12:55 PM, Dave Angel wrote: > You will want to configure your DOS Box to make it easier to cut > and paste. How is this done? I'm not on windows atm to test it. ___ Tutor maillist - Tutor@python.org To unsubscribe or change su

Re: [Tutor] Python Socket Error: Connection refused

2014-07-07 Thread Emile van Sebille
On 7/7/2014 10:16 AM, Matthew Ngaha wrote: On Mon, Jul 7, 2014 at 12:55 PM, Dave Angel wrote: You will want to configure your DOS Box to make it easier to cut and paste. How is this done? I'm not on windows atm to test it. I think it's referring to the two edit options on the options tab

Re: [Tutor] Python Socket Error: Connection refused

2014-07-07 Thread Pamela Wightley
Thank you for your response. I installed python last week and it has been working fine until this afternoon. I will investigate the firewall prohibitions. Pamela Wightley MARQ Services Tel: 040 089 2714 On 7 Jul 2014, at 4:49 pm, "Danny Yoo" wrote: >> I need some help, I have no programming s

Re: [Tutor] Python Socket Error: Connection refused

2014-07-07 Thread Alan Gauld
On 07/07/14 06:10, Pamela Wightley wrote: Hi, I need some help, I have no programming skills and am trying to teach myself python. I keep on getting an error message as follows: Socket Error: Connection refused, This is a common problem with IDLE in some environments. There is a workaround

[Tutor] need help reading the code

2014-07-07 Thread keith papa
# Hi am leaning python with A Byte of Python - Swaroop CH and am a little confused with The format method. So I leaned that printing the code: >>>age = 20 >>>name = 'Swaroop' >>>print '{0} was {1} years old when he wrote this book'.format(name, age) >

Re: [Tutor] need help reading the code

2014-07-07 Thread Alan Gauld
On 07/07/14 19:29, keith papa wrote: Please post in plain text and avoid attachments if possible. Just paste code directly into the email. I've had to cut n paste everything to write this which is a pain... >>> print '{0} was {1} years old when he wrote this book'.format(name, age) >>> print '

Re: [Tutor] need help reading the code

2014-07-07 Thread Alan Gauld
On 07/07/14 19:29, keith papa wrote: # decimal (.) precision of 3 for float '0.333' >>> print '{0:.3f}'.format(1.0/3) The best way to see how this works is to try it with different values: >>> print('{0:.3f}'.format(1.0/3)) 0.333 >>> print('{0:.5f}'.format(1.0/3)) 0.3 >>> print('{0:.1f}'.fo

[Tutor] Next steps...

2014-07-07 Thread Ni Hung
ok, I am now able to write scripts in python. I can read/modify scripts written by others (true to some level). I understand the basics of libraries (how are they different from modules or are the same thing with two names?) like urllib2, json, sys, os etc. and have used them in some scripts. Wh