Re: [Tutor] Help with a Conversion

2017-01-05 Thread S. P. Molnar
On 01/05/2017 01:10 PM, Peter Otten wrote: S. P. Molnar wrote: I have just started attempting programming in Python and am using Spyder with Python 3.5.2 on a Linux platform. (I first started programing in Fortran II using punched paper tape. Yes, am a rather elderly . . .). I have bumbled

Re: [Tutor] Help with a Conversion

2017-01-05 Thread Steven D'Aprano
On Thu, Jan 05, 2017 at 08:29:33AM -0500, S. P. Molnar wrote: [...] > To change the frequency to wave length I did the following: > > > p=1/1e7 > wave_length = p*np.array(frequency) > > (The relationship between wavelength and frequency is: wavelength = > 1.0e7/frequency, where 1e7 is the

Re: [Tutor] Help with a Conversion

2017-01-05 Thread Peter Otten
S. P. Molnar wrote: > I have just started attempting programming in Python and am using Spyder > with Python 3.5.2 on a Linux platform. (I first started programing in > Fortran II using punched paper tape. Yes, am a rather elderly . . .). > > I have bumbled through, what I foolishly thought

Re: [Tutor] Help with a Conversion

2017-01-05 Thread S. P. Molnar
On 01/05/2017 11:41 AM, Alan Gauld via Tutor wrote: On 05/01/17 13:29, S. P. Molnar wrote: Fortran II using punched paper tape. Yes, am a rather elderly . . .). You are not the only one, there are at least 2 more of us on this list that started in that era... short program to change

Re: [Tutor] Help with a Conversion

2017-01-05 Thread Alan Gauld via Tutor
On 05/01/17 13:29, S. P. Molnar wrote: > Fortran II using punched paper tape. Yes, am a rather elderly . . .). You are not the only one, there are at least 2 more of us on this list that started in that era... > short program to change frequency to wavelength for a plot of > ultraviolet

Re: [Tutor] prenting a line form appearing in log file

2017-01-05 Thread Alan Gauld via Tutor
On 05/01/17 13:01, anatta anatta wrote: > I have created a log file, using 'logging' module, > name = raw_input ("Please enter your name.") > print 'Hi ', name, 'Please go ahead and press enter to transfer files' > > The log file records the variable 'name' in the log file at the > right

[Tutor] Help with a Conversion

2017-01-05 Thread S. P. Molnar
I have just started attempting programming in Python and am using Spyder with Python 3.5.2 on a Linux platform. (I first started programing in Fortran II using punched paper tape. Yes, am a rather elderly . . .). I have bumbled through, what I foolishly thought was a simple problem, a short

[Tutor] prenting a line form appearing in log file

2017-01-05 Thread anatta anatta
Dear Tutors, Thanks in advance for the help. anatta. + I have created a log file, using 'logging' module, which records items of my interest after the execution of the program. The program in the beginning asks for name of the person who runs the program, as below: name = raw_input