Re: [Tutor] Proper uses of classes

2013-04-05 Thread Mark Lawrence
On 04/04/2013 18:01, frank ernest wrote: Sorry about the indentation guys my mail service atomatically removed it when I pasted the text (I tried to fix it by hand but it was hard to tell if I was sucessful.) I was tring to create a list object (self) and change it using the list methods and som

Re: [Tutor] Proper uses of classes

2013-04-05 Thread Dave Angel
On 04/04/2013 01:01 PM, frank ernest wrote: Sorry about the indentation guys my mail service atomatically removed it when I pasted the text (I tried to fix it by hand but it was hard to tell if I was sucessful.) I was tring to create a list object (self) and change it using the list methods an

[Tutor] Socket Programming

2013-04-05 Thread Mousumi Basu
I want to perform bind function for socket programming between two computers of ip addresses- 172.18.2.11 and 172.18.2.95 using the following command(on the computer having IP address 172.18.2.95): s=socket.socket(socket.AF_INIT,socket.SCK_DGRM)) s.bind(('172.18.2.11',8032)) But error is occurri

[Tutor] basic question

2013-04-05 Thread Najam Us Saqib
Hi, My name is Najam, I am very new to Python Programming. Would you please help me with the following question? The question/problem is, Write a Car salesman program where the user enters the base price of a car. The program should add a bunch of extra fees such as tax, license, dealer prep,

Re: [Tutor] basic question

2013-04-05 Thread Dave Angel
On 04/05/2013 08:05 AM, Najam Us Saqib wrote: Hi, My name is Najam, I am very new to Python Programming. Welcome. Would you please help me with the following question? The question/problem is, Write a Car salesman program where the user enters the base price of a car. The program should

Re: [Tutor] basic question

2013-04-05 Thread Woody 544
On 4/5/13, Woody 544 wrote: > Dear Najam > > The tax and license amounts should not need to be entered, as I would > think the only variable is the base price, with tax and license > calculated as their rate times the base price. For example, if the > sales tax rate for the area is 6% for example:

Re: [Tutor] Socket Programming

2013-04-05 Thread Steven D'Aprano
On 05/04/13 21:47, Mousumi Basu wrote: I want to perform bind function for socket programming between two computers of ip addresses- 172.18.2.11 and 172.18.2.95 using the following command(on the computer having IP address 172.18.2.95): s=socket.socket(socket.AF_INIT,socket.SCK_DGRM)) I get

Re: [Tutor] Socket Programming

2013-04-05 Thread Chris Fuller
Have you checked out the socket HOWTO? http://docs.python.org/2/howto/sockets.html Cheers On Friday, April 05, 2013, Mousumi Basu wrote: > I want to perform bind function for socket programming between two > computers of ip addresses- 172.18.2.11 and 172.18.2.95 using the following > command(on

Re: [Tutor] TypeError: can't multiply sequence by non-int of type 'float'

2013-04-05 Thread Sayan Chatterjee
Thanks all...I realized my mistake!!...:) On 4 April 2013 20:12, Andreas Perstinger wrote: > Sayan Chatterjee wrote: > > >I know this error occurs when one tries to multiply a string with a > >fraction i.e float. In my case , I can't figure out how can a numpy > >floating point array be a stri