[Tutor] Help with List

2015-07-26 Thread Anurag Vyas
Hello Team, I am noob to programming. I am trying to remove a item from a list. The item that I am trying to remove has multiple entries in the list. I am not able to remove all the entries. Please Help. The code is in the attachment. -- Thanks & Regards Anurag Vyas __

Re: [Tutor] Help with List

2015-07-26 Thread Steven D'Aprano
On Sun, Jul 26, 2015 at 10:04:19AM +0530, Anurag Vyas wrote: > Hello Team, > I am noob to programming. I am trying to remove a item from a list. The > item that I am trying to remove has multiple entries in the list. I am not > able to remove all the entries. > Please Help. The code is in the attac

Re: [Tutor] How to generate a pure tones and random noise using Python?

2015-07-26 Thread Paul Z
Hi Laura, Thanks for you helpful reply, and it is exactly what I want. I'm going to learn Python from write a ears training program. ;-) And Is there have a library to scope(print) this wave form? (real-time and non real-time) I have already started to learn "generate audio with python", Thank

Re: [Tutor] How to generate a pure tones and random noise using Python?

2015-07-26 Thread Paul Z
Hi Laura, I just have read this webpage about Generate Audio with Python. It seem writing by Python 2? Esp. itertools (izip, imap). I try to change izip and imap to zip and map, but I get error: beatfreq, amplitude = remainder.split('/') ValueError: need more than 1 value to unpack Are there so

Re: [Tutor] Socket Module

2015-07-26 Thread Martin A. Brown
Hello Nym, Here is the updated code: https://bpaste.net/show/358583e1a0bd It's short. I have included inline here: import socket ListOfIPAddresses = [] with open('top500ips.csv', 'r') as f: for line in f: line = line.strip() ListOfIPAddresses.append(line)

Re: [Tutor] How to generate a pure tones and random noise using Python?

2015-07-26 Thread Pablo Lucena
> > > I just have read this webpage about Generate Audio with Python. > It seem writing by Python 2? Esp. itertools (izip, imap). > I try to change izip and imap to zip and map, but I get error: > > ​​ > beatfreq, amplitude = remainder.split('/') > ​​ > ValueError: need more than 1 value to unpack

Re: [Tutor] How to generate a pure tones and random noise using Python?

2015-07-26 Thread Alan Gauld
On 25/07/15 12:15, Paul Z wrote: Are there some way to generate a fixed frequency sound in different > waves (eg. Sine Wave, Saw Wave, Triangle Wave etc.) and > different random noise. (eg. white noise & pink noise) ? While there are several options in Python (check out the Activestate recipes)