Re: [Tutor] New to Python

2017-09-15 Thread Abdur-Rahmaan Janhangeer
1) valuable resources : sololearn tutorialspoint python3 top tip : concentrate on concepts good books for beginners there are many like .. dive into python 3 available free online .. automate the boring stuff available free online a good reference-like book: .. Learning Python .. Programming

Re: [Tutor] New to Python

2017-09-08 Thread Alan Gauld via Tutor
On 08/09/17 08:35, George Fischhof wrote: > As this is a really frequent question, maybe it would be good to put a > short list (the answers cumulated no more than about 10 websites) into the > welcome message of the Tutor mailing list. The welcome message should be a very short (ideally one

Re: [Tutor] New to Python

2017-09-08 Thread George Fischhof
2017-09-07 20:39 GMT+02:00 boB Stepp : > Welcome to Tutor! > > On Thu, Sep 7, 2017 at 8:14 AM, Vikram Singh > wrote: > > I've been learning Python from Google For Education > > . A little help will be

Re: [Tutor] New to Python

2017-09-07 Thread boB Stepp
Welcome to Tutor! On Thu, Sep 7, 2017 at 8:14 AM, Vikram Singh wrote: > I've been learning Python from Google For Education > . A little help will be > appreciated regarding the right way and right tutorials to learn Python

Re: [Tutor] new to python

2017-07-26 Thread N6Ghost
On 7/25/2017 12:43 AM, Alan Gauld via Tutor wrote: On 25/07/17 04:58, N6Ghost wrote: this code works f = open("C:/coderoot/python3/level1/inputfile.txt", 'r') for line in f: for line in f: #print(line.rstrip()) print(line) f.close() the out put skips the first line

Re: [Tutor] new to python

2017-07-25 Thread Alan Gauld via Tutor
On 25/07/17 04:58, N6Ghost wrote: > this code works > f = open("C:/coderoot/python3/level1/inputfile.txt", 'r') > for line in f: > for line in f: > #print(line.rstrip()) > print(line) > > f.close() > the out put skips the first line of the inputfile and puts a blank line

Re: [Tutor] new to python

2017-07-25 Thread Andre Engels
The problem here is that you have doubled the "for line in f:" line. Given that you say you know some programming, I'll just cut to the technical name of the problem you are having: You are changing the value of a loop variable (by starting an inner loop with the same loop variable) inside a loop.

Re: [Tutor] new to python

2017-07-25 Thread N6Ghost
On 7/23/2017 1:03 AM, Alan Gauld via Tutor wrote: On 23/07/17 07:26, N6Ghost wrote: f = open("C:\coderoot\python3\level1\inputfile.txt", 'r') for line in file: Note that you have no variable called 'file'. So this line doesn't make sense. for line in f:

Re: [Tutor] new to python

2017-07-24 Thread Mats Wichmann
On 07/24/2017 04:32 PM, N6Ghost wrote: > update code: > f = open("C:\coderoot\python3\level1\inputfile.txt", 'r') > for line in f: > for line in f: > print(line.rstripe()) > > f.close() > > > C:\coderoot\python3\level1>python secondscript.py > Traceback (most recent call

Re: [Tutor] new to python

2017-07-24 Thread N6Ghost
On 7/23/2017 1:03 AM, Alan Gauld via Tutor wrote: On 23/07/17 07:26, N6Ghost wrote: f = open("C:\coderoot\python3\level1\inputfile.txt", 'r') for line in file: Note that you have no variable called 'file'. So this line doesn't make sense. for line in f:

Re: [Tutor] new to python

2017-07-23 Thread Mats Wichmann
On 07/23/2017 09:16 AM, Alex Kleider wrote: > On 2017-07-23 01:06, Anish Tambe wrote: >>> for line in file: >> >> This line is not required as the you have opened your file to 'f'. >> 'file' is a built-in class. Type - >> help(file) >> on the interpreter to know more about it. > > This appears to

Re: [Tutor] new to python

2017-07-23 Thread Alex Kleider
On 2017-07-23 01:06, Anish Tambe wrote: for line in file: This line is not required as the you have opened your file to 'f'. 'file' is a built-in class. Type - help(file) on the interpreter to know more about it. This appears to be true in python2x but not in python3: alex@X301n3:~$ python3

Re: [Tutor] new to python

2017-07-23 Thread Peter Otten
N6Ghost wrote: > C:\coderoot\python3\level1>python > Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:14:34) [MSC v.1900 32 bit > (Intel)] on win32 > Type "help", "copyright", "credits" or "license" for more information. > > /windows 10 x64 > > new to python, but not really new to programming. >

Re: [Tutor] new to python

2017-07-23 Thread Anish Tambe
> for line in file: This line is not required as the you have opened your file to 'f'. 'file' is a built-in class. Type - help(file) on the interpreter to know more about it. > for line in f: > print(line.rstripe()) > f.close() Are you sure that you need to close the file

Re: [Tutor] new to python

2017-07-23 Thread Alan Gauld via Tutor
On 23/07/17 07:26, N6Ghost wrote: > > f = open("C:\coderoot\python3\level1\inputfile.txt", 'r') > for line in file: Note that you have no variable called 'file'. So this line doesn't make sense. > for line in f: > print(line.rstripe()) This bit will work if you omit the line

Re: [Tutor] New to Python

2016-10-27 Thread Danny Yoo
> program-they just do it. Also noticed-when starting new file sometimes I > see run at the top sometimes not? Lots of questions. Familiar with > programming in C. If you're a database and C developer, then you probably have enough experience to go through the Python tutorial, as it is aimed

Re: [Tutor] New to Python

2016-10-27 Thread Alan Gauld via Tutor
On 28/10/16 01:05, Rusty Bayles wrote: > Thanks for the reply Alan, > Could you please tell me more detail on the videos? Like who made them. Some are just amateurs others are professional (or at least Youtube regulars) Here are a couple of links, but to be honest just about any of them would

Re: [Tutor] New to Python

2016-10-27 Thread Alan Gauld via Tutor
On 27/10/16 23:41, Rusty Bayles wrote: > I just installed 3.5.2 interpreter and cannot figure out how to run > program. I strongly suggest you go to Youtube and search for IDLE. There are several short (3-10min) videos there that should make it clear where you are going wrong. Watch a couple

Re: [Tutor] New to Python, Already Confused

2016-09-20 Thread Steven D'Aprano
On Mon, Sep 19, 2016 at 11:01:30PM +, Gampper, Terry wrote: > Hello > I started my journey with Python last week and find it to be an > easy-to-learn language. I am currently teaching introduction to > computer programming. One of the assignments we are working on > involves an instructor

Re: [Tutor] New to Python, Already Confused

2016-09-20 Thread Joel Goldstick
You should probably convert scores to ints on input. At any rate, here is your problem: low_tscore = min(tscore1,tscore2,tscore3,tscore4,tscore5) You need to convert tscore1, etc. to ints, otherwise min will give lexical comparison (alphabetic order), not numeric order On Mon, Sep 19, 2016 at

Re: [Tutor] New at Python

2014-10-05 Thread R. Alan Monroe
while loop to compute the sum of the cubes of the first n counting numbers do you have any suggestions as to how I need to look at a problem and to “identify” what exactly it is asking for, Can you do it on paper? If I gave you 5 as a starting point, could you write down on your paper 1

Re: [Tutor] New at Python

2014-10-05 Thread Alan Gauld
On 05/10/14 23:40, Mike Spaulding wrote: Given that n refers to a positive int use a while loop to compute the sum of the cubes of the first n counting numbers, and associate this value with total . Use no variables other than n , k , and total . lab and the accompanying online book. The

Re: [Tutor] New at Python

2014-10-05 Thread Danny Yoo
On Sun, Oct 5, 2014 at 3:40 PM, Mike Spaulding spauldingfam...@twc.com wrote: Given that n refers to a positive int use a while loop to compute the sum of the cubes of the first n counting numbers, and associate this value with total . Use no variables other than n , k , and total . Hi, I am

Re: [Tutor] New to Python..Need help

2014-09-04 Thread Joel Goldstick
On Thu, Sep 4, 2014 at 8:49 AM, Felisha Lawrence felisha.lawre...@gmail.com wrote: Hello, I have a question regarding strings in python. I have a directory on my MacBook Bro of about 13 files. I need to alter the file endings in that directory. The files are on the order of

Re: [Tutor] New to Python..Need help

2014-09-04 Thread taserian
Is there anything different between the filenames aside from that suffix _vXX? If not, then you'll run into problems after the first filename is changed; further attempts won't allow the change, since there's already a file with that same name. AR On Thu, Sep 4, 2014 at 8:49 AM, Felisha

Re: [Tutor] New to Python..Need help

2014-09-04 Thread Alan Gauld
On 04/09/14 13:49, Felisha Lawrence wrote: 'swp.113006004000_KLWX_0.0.5_PPI_v2','swp.113006004000_KLWX_0.0.5_PPI_v3'. I need to remove the characters after the 'v' and replace with v20. All of the endings of the files are sequential _v2, _v3,_v4, _v5. I need all of these characters to be the

Re: [Tutor] New to Python..Need help

2014-09-04 Thread Danny Yoo
I have a question regarding strings in python. I have a directory on my MacBook Bro of about 13 files. I need to alter the file endings in that directory. The files are on the order of 'swp.113006004000_KLWX_0.0.5_PPI_v2','swp.113006004000_KLWX_0.0.5_PPI_v3'. I need to remove the characters

Re: [Tutor] New to Python..Need help

2014-09-04 Thread Danny Yoo
On Thu, Sep 4, 2014 at 12:05 PM, taserian taser...@gmail.com wrote: Is there anything different between the filenames aside from that suffix _vXX? If not, then you'll run into problems after the first filename is changed; further attempts won't allow the change, since there's already a file

Re: [Tutor] New to Python..Need help

2014-09-04 Thread Cameron Simpson
On 04Sep2014 15:01, Joel Goldstick joel.goldst...@gmail.com wrote: On Thu, Sep 4, 2014 at 8:49 AM, Felisha Lawrence felisha.lawre...@gmail.com wrote: I have a question regarding strings in python. I have a directory on my MacBook Bro of about 13 files. I need to alter the file endings in that

Re: [Tutor] New to Python..Need help

2014-09-04 Thread Felisha Lawrence
These are all the files. No two filenames are the same swp.1120630020111.KLWX.0.0.5_PPI_v2 swp.1120630020143.KLWX.0.0.9_PPI_v3 swp.1120630020215.KLWX.0.1.3_PPI_v4 swp.1120630020247.KLWX.0.1.8_PPI_v5 swp.1120630020302.KLWX.0.2.4_PPI_v6 swp.1120630020316.KLWX.0.3.1_PPI_v7

Re: [Tutor] New to Python - print function - invalid syntax

2014-08-05 Thread Greg Markham
On Mon, Aug 4, 2014 at 5:13 PM, Alan Gauld alan.ga...@btinternet.com wrote: On 05/08/14 00:21, Greg Markham wrote: but I'm running into a syntax error As others have said you are getting the expected error when running Python v3 code under Python v2. How exactly are you running

Re: [Tutor] New to Python - print function - invalid syntax

2014-08-05 Thread Maxime Steisel
Le 2014-08-05 02:07, Greg Markham greg.mark...@gmail.com a écrit: Ok, when I try this from the Shell window, it works. When executing the full program from command line, it does not. Python versions from both shell and command line are 3.4.1 (confirmed via command: python -V). Full error msg

Re: [Tutor] New to Python - print function - invalid syntax

2014-08-05 Thread Ben Finney
Greg Markham greg.mark...@gmail.com writes: For cmd line, yes that's basically it. When I say shell, I'm referring to the Python IDLE GUI. For future reference: the operating system shell presents a command line. The Python shell presents a command line. So “shell” and “command line” don't

Re: [Tutor] New to Python - print function - invalid syntax

2014-08-05 Thread Marc Tompkins
On Tue, Aug 5, 2014 at 12:48 AM, Maxime Steisel maximestei...@gmail.com wrote: I think this is because on windows, *.py files are associated with py.exe that choose the python version depending on the first line of your file. No. *ix operating systems (Unix, Linux, OS X, etc.) inspect the

Re: [Tutor] New to Python - print function - invalid syntax

2014-08-05 Thread Mark Lawrence
On 05/08/2014 15:56, Marc Tompkins wrote: On Tue, Aug 5, 2014 at 12:48 AM, Maxime Steisel maximestei...@gmail.com wrote: I think this is because on windows, *.py files are associated with py.exe that choose the python version depending on the first line of your file. No. *ix operating

Re: [Tutor] New to Python - print function - invalid syntax

2014-08-05 Thread Zachary Ware
On Tue, Aug 5, 2014 at 9:56 AM, Marc Tompkins marc.tompk...@gmail.com wrote: On Tue, Aug 5, 2014 at 12:48 AM, Maxime Steisel maximestei...@gmail.com wrote: I think this is because on windows, *.py files are associated with py.exe that choose the python version depending on the first line of

Re: [Tutor] New to Python - print function - invalid syntax

2014-08-05 Thread Marc Tompkins
On Tue, Aug 5, 2014 at 8:23 AM, Zachary Ware zachary.ware+py...@gmail.com wrote: which it should be if the most recently installed Python was 3.3 or 3.4, installed with default options. And there we have my problem with this glorious new feature. YOU CAN'T RELY ON IT, because it depends on

Re: [Tutor] New to Python - print function - invalid syntax

2014-08-05 Thread Dave Angel
Marc Tompkins marc.tompk...@gmail.com Wrote in message: On Tue, Aug 5, 2014 at 8:23 AM, Zachary Ware zachary.ware+py...@gmail.com wrote: which it should be if the most recently installed Python was 3.3 or 3.4, installed with default options. And there we have my problem with this glorious

Re: [Tutor] New to Python - print function - invalid syntax

2014-08-04 Thread Joel Goldstick
On Mon, Aug 4, 2014 at 1:28 PM, Greg Markham greg.mark...@gmail.com wrote: Hello, I'm extremely new to Python having only just started learning this week. I'm slowly plodding through a book, Python Programming for the Absolute Beginner, 3rd ed by Michael Dawson. Code is provided for all the

Re: [Tutor] New to Python - print function - invalid syntax

2014-08-04 Thread Danny Yoo
but I'm running into a syntax error when running one of the unmodified programs. On line 14, which reads: print(Here, end= ) I'm receiving a syntax error which points to the end parameter. I'd like to also support Joel's suggestion to provide detailed output of the error message. It

Re: [Tutor] New to Python - print function - invalid syntax

2014-08-04 Thread Cameron Simpson
On 04Aug2014 13:38, Danny Yoo d...@hashcollision.org wrote: difference between the version of Python I'm using (3.4.1) and that which was in use at the time the book was written (3.1.x) that is responsible for this error. Just to double check: how are you confirming what version of Python

Re: [Tutor] New to Python - print function - invalid syntax

2014-08-04 Thread Greg Markham
On Mon, Aug 4, 2014 at 12:37 PM, Alex Kleider aklei...@sonic.net wrote: On 2014-08-04 10:28, Greg Markham wrote: Hello, I'm extremely new to Python having only just started learning this week. I'm slowly plodding through a book, Python Programming for the Absolute Beginner, 3rd ed

Re: [Tutor] New to Python - print function - invalid syntax

2014-08-04 Thread Greg Markham
On Mon, Aug 4, 2014 at 11:52 AM, Joel Goldstick joel.goldst...@gmail.com wrote: On Mon, Aug 4, 2014 at 1:28 PM, Greg Markham greg.mark...@gmail.com wrote: Hello, I'm extremely new to Python having only just started learning this week. I'm slowly plodding through a book, Python

Re: [Tutor] New to Python - print function - invalid syntax

2014-08-04 Thread Alan Gauld
On 05/08/14 00:21, Greg Markham wrote: but I'm running into a syntax error As others have said you are getting the expected error when running Python v3 code under Python v2. How exactly are you running the program? It looks like somehow you are picking up Python v2 when you run

Re: [Tutor] New to Python - print function - invalid syntax

2014-08-04 Thread Steven D'Aprano
On Mon, Aug 04, 2014 at 04:44:46PM -0700, Greg Markham wrote: Ok, when I try this from the Shell window, it works. When executing the full program from command line, it does not. Python versions from both shell and command line are 3.4.1 (confirmed via command: python -V). I'm a little

Re: [Tutor] New to Python

2014-05-04 Thread Jordan Smallwood
I never got a response. Should I check my spam? Sent from my iPhone On Apr 28, 2014, at 1:57 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 26/04/2014 23:53, jordan smallwood wrote: Hello, I am new to Python. I mean completely new and we're working on this problem set in class

Re: [Tutor] New to Python

2014-05-04 Thread Alan Gauld
On 28/04/14 13:56, Jordan Smallwood wrote: I never got a response. Should I check my spam? Probably, although Dave and I both basically said the same as the current batch of answers. Namely the exercise is pretty clear: write a module with 2 functions. Now, what part of that specifically do

Re: [Tutor] New to Python

2014-04-28 Thread Mark Lawrence
On 26/04/2014 23:53, jordan smallwood wrote: Hello, I am new to Python. I mean completely new and we're working on this problem set in class where they give us specs and we have to build something based off these specs. I have no idea what they're asking. Could someone help get me started on

Re: [Tutor] New to Python

2014-04-28 Thread R. Alan Monroe
1. Write a program module with at least two functions. Hint: def is the Python keyword used to define a function. You can read all about def in the docs on python.org. Alan ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription

Re: [Tutor] New to Python

2014-04-28 Thread Danny Yoo
Hi Jordan, You probably want to read up to chapter 3 (including the Functions chapter) in How to Think Like a Computer Scientist: http://www.greenteapress.com/thinkpython/html/index.html or some equivalent tutorial, so that you at least know what the terms in the problem statement means.

Re: [Tutor] New to Python

2014-04-28 Thread Steven D'Aprano
On Sat, Apr 26, 2014 at 03:53:33PM -0700, jordan smallwood wrote: Hello, I am new to Python. I mean completely new and we're working on this problem set in class where they give us specs and we have to build something based off these specs. I have no idea what they're asking. Could

Re: [Tutor] New to Python - simple question

2012-11-30 Thread Unaiza Ahsan
I'm on Chapter 1 of Solem's book. The following function definition needs to be added to imtools.py: [I did paste this I think in my first email]. import os from numpy import * def histeq(im,nbr_bins=256): Histogram equalization of a grayscale image. # get image histogram imhist,bins =

Re: [Tutor] New to Python - simple question

2012-11-19 Thread Unaiza Ahsan
* Where is the histogram() function from? Is it in imtools.py as well? * It is a NumPY function. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] New to Python - simple question

2012-11-19 Thread Unaiza Ahsan
*Hi all, The function histogram is supposed to come from the numpy module; at* * least that's the case on my computer (I have numpy 1.6.2 for Python 2.7): from numpy import ** * histogram function histogram at 0x10b0c0ed8 Maybe something is wrong with Unaiza's version of numpy.* * Kal *Yes

Re: [Tutor] New to Python - simple question

2012-11-19 Thread Oscar Benjamin
On 18 November 2012 14:07, Unaiza Ahsan unaiza.ah...@gmail.com wrote: Hi all, The function histogram is supposed to come from the numpy module; at least that's the case on my computer (I have numpy 1.6.2 for Python 2.7): from numpy import * histogram function histogram at 0x10b0c0ed8

Re: [Tutor] New to Python - simple question

2012-11-18 Thread ALAN GAULD
And the relevant portion in imtools.py is: def histeq(im,nbr_bins=256):       Histogram equalization of a grayscale image.       #get image histogram       imhist,bins = histogram(im.flatten(),nbr_bins,normed=True) This is the call, but where is histogram? If it is in imtools are you sure

Re: [Tutor] New to Python - simple question

2012-11-17 Thread staticsafe
On 11/16/2012 12:40, Unaiza Ahsan wrote: Hi all, I am following Jan Erik Solem's book Programming Computer Vision with Python and I'm just on the first chapter. The book asked us to create a file imtools.py and put down helpful functions there, which we can just call later. There is a

Re: [Tutor] New to Python - simple question

2012-11-17 Thread Alan Gauld
On 16/11/12 17:40, Unaiza Ahsan wrote: There is a function created for histogram equalization of images (called *histeq*), and saved in imtools.py. from PIL import Image from numpy import * im = array(Image.open('Tulips.jpg').convert('L')) im2,cdf = imtools.histeq(im) I get this:

Re: [Tutor] New to Python - simple question

2012-11-17 Thread Kal Sze
On 18 November 2012 07:40, Alan Gauld alan.ga...@btinternet.com wrote: On 16/11/12 17:40, Unaiza Ahsan wrote: There is a function created for histogram equalization of images (called *histeq*), and saved in imtools.py. from PIL import Image from numpy import * im =

Re: [Tutor] New to Python

2012-05-18 Thread Steven D'Aprano
Hi Jeremy, Welcome to Python, but please don't send HTML email (what some programs wrongly call Rich Text), as it completely destroys the necessary indentation of your Python code and makes it difficult or impossible to work out what your code is supposed to be. However, I will take a wild

Re: [Tutor] New to Python

2012-05-18 Thread Vignesh Sathiamoorthy
Hi Jeremy, I am new to Python too. I find docs.python.org very helpful. *Understanding functions:* http://docs.python.org/tutorial/controlflow.html#defining-functions *Reading and Writing Files:* http://docs.python.org/tutorial/inputoutput.html#reading-and-writing-files *File Objects:*

Re: [Tutor] New to Python programing

2012-04-03 Thread Wayne Werner
On Mon, 2 Apr 2012, wesley chun wrote: greetings walter, and welcome to the Python family! snip as far as books go, the best way to learn Python is by writing games. this is an approach that works both with children as well as adults. there are several excellent books that can help you with

Re: [Tutor] New to Python programing

2012-04-03 Thread Christian Witts
On 2012/04/03 03:50 PM, Cranky Frankie wrote: Another resourse for learning to program is YouTube. They just had a segment on 60 Minutes about a guy who does all kinds of well regarded free courses on-line, unfortunately I can't remberber the URL. I've viewed several Stanford University

Re: [Tutor] New to Python programing

2012-04-03 Thread Cranky Frankie
On Tue, Apr 3, 2012 at 10:09 AM, Christian Witts cwi...@compuscan.co.za wrote: Are you possibly thinking of the Khan Academy [1] ? [1] http://www.khanacademy.org/ Yes, that was it, thanks. -- Frank L. Cranky Frankie Palmeri Risible Riding Raconteur Writer “The problem with quotes on the

Re: [Tutor] New to Python programing

2012-04-03 Thread Brad Hudson
Are you possibly thinking of the Khan Academy [1] ? [1] http://www.khanacademy.org/ If you're interested in free courses, MIT also has free programming courses (done in Python) via their OpenCourseWare and will be expanding this to MITx in the near future. OpenCourseWare - Intro to Computer

Re: [Tutor] New to Python programing

2012-04-03 Thread wesley chun
a couple of other sources of video learning (DISCLAIMER: the 1st is from my employer, and the 2nd is from me -- the intention is to provide alternatives not shameless self-promotion so please don't take it that way!): 1. Google offers an internal Python training class to its employees. it's a

Re: [Tutor] New to Python programing

2012-04-02 Thread Shane Keene
I don't currently use Python 3 and don't recommend that you use it to learn with, mostly because the bulk of the docs and learning resources are Python 2.x focused and the two are not compatible. That said, here are some resources that you may find useful (particularly if you choose to learn using

Re: [Tutor] New to Python programing

2012-04-02 Thread wesley chun
greetings walter, and welcome to the Python family! it looks like you've got your machine all set up. hopefully installing Python 3 wasn't too difficult -- users constantly have issues with their own installs clash with the Python that's pre-installed by Apple. as far as learning Python for

Re: [Tutor] new to python

2010-11-19 Thread Alan Gauld
Alan Gauld alan.ga...@btinternet.com wrote COM = Common Object Model Oops, sorry. That should be COMPONENT Object Model... Alan G. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options:

Re: [Tutor] new to python

2010-11-19 Thread Walter Prins
On 19 November 2010 00:20, Joel Schwartz j...@joelschwartz.com wrote: For those of us who are new to writing code that makes various software packages interact with each other, can you say more about what COM object model means in this context and where one can learn how to use it to make

Re: [Tutor] new to python

2010-11-19 Thread Joel Schwartz
Great information. Thanks to everyone who replied. Joel _ From: Walter Prins [mailto:wpr...@gmail.com] Sent: Friday, November 19, 2010 5:52 AM To: Joel Schwartz Cc: Tutor@python.org Subject: Re: [Tutor] new to python On 19 November 2010 00:20, Joel Schwartz j...@joelschwartz.com

Re: [Tutor] new to python

2010-11-18 Thread Steven D'Aprano
gary engstrom wrote: Dear Python Tutor, Being new to python I was wondering if there is a way to import exel data into pyrhon matrix/arrays so that I have some data to work with. I know R uses Rcmdr as an easy interface for excel data, which helps keep the reader engaged while learning the

Re: [Tutor] new to python

2010-11-18 Thread Walter Prins
On 18 November 2010 21:13, gary engstrom engstrom.g...@gmail.com wrote: Being new to python I was wondering if there is a way to import exel data into pyrhon matrix/arrays so that I have some data to work with. I know R uses Rcmdr as an easy interface for excel data, which helps keep the

Re: [Tutor] new to python

2010-11-18 Thread Joel Schwartz
@python.org] On Behalf Of Walter Prins Sent: Thursday, November 18, 2010 2:51 PM To: gary engstrom Cc: Tutor@python.org Subject: Re: [Tutor] new to python On 18 November 2010 21:13, gary engstrom engstrom.g...@gmail.com wrote: Being new to python I was wondering if there is a way to import

Re: [Tutor] new to python

2010-11-18 Thread Alan Gauld
Joel Schwartz j...@joelschwartz.com wrote packages interact with each other, can you say more about what COM object model means in this context and where one can learn how to use it to make Python interact with Excel and with Windows software in general. COM = Common Object Model It is a

Re: [Tutor] new to python

2010-11-18 Thread Emile van Sebille
On 11/18/2010 4:20 PM Joel Schwartz said... Walter, For those of us who are new to writing code that makes various software packages interact with each other, can you say more about what COM object model means in this context and where one can learn how to use it to make Python interact with

Re: [Tutor] New to Python

2009-10-29 Thread asterix09
I am running Windows Vista. Do you know what remote desktop is? This is the tool I use to connect to my other severs on the network or alternatively I use my Run option (Start/Run) where you add in the IP address and connect to the server. I want to use python to do this for me. I can do it

Re: [Tutor] New to Python

2009-10-29 Thread Tim Golden
asteri...@petlover.com wrote: I am running Windows Vista. OK. Definite points for giving useful info up front. Do you know what remote desktop is? Yes. This is the tool I use to connect to my other severs on the network or alternatively I use my Run option (Start/Run) where you add in

Re: [Tutor] New to Python

2009-10-28 Thread Kent Johnson
Forwarding to the list with my reply (please use Reply All to reply to the list): On Wed, Oct 28, 2009 at 2:01 AM, asteri...@petlover.com wrote: Hi Kent, Thank you for replying to my request, really appreciate it. I am not familiar with all your connections that you have mentioned below.

Re: [Tutor] New to Python

2009-10-28 Thread Dave Angel
Remember to hit Reply to all - Forwarding your message onto the list -- Forwarded message -- From: asteri...@petlover.com Date: Wed, Oct 28, 2009 at 1:00 AM Subject: Re: [Tutor] New to Python To: sri...@gmail.com Hi Wayne, I will try as best to explain what I need to do

Re: [Tutor] New to Python

2009-10-28 Thread asterix09
Well I would have to remote to the machine that contains the log file and copy it from there. -Original Message- From: Kent Johnson ken...@tds.net To: asteri...@petlover.com Cc: *tutor python tutor@python.org Sent: Wed, Oct 28, 2009 1:18 pm Subject: Re: [Tutor] New to Python

Re: [Tutor] New to Python

2009-10-28 Thread Kent Johnson
don't top-post. -Original Message- From: Kent Johnson ken...@tds.net To: asteri...@petlover.com Cc: *tutor python tutor@python.org Sent: Wed, Oct 28, 2009 1:18 pm Subject: Re: [Tutor] New to Python Forwarding to the list with my reply (please use Reply All to reply to the list

Re: [Tutor] New to Python

2009-10-27 Thread Wayne
On Tue, Oct 27, 2009 at 10:35 AM, asteri...@petlover.com wrote: Hi there, How do you connect to a different server using python? (I have not used python before) What kind of server? What do you ultimately want to do? see: http://catb.org/~esr/faqs/smart-questions.html#beprecise for more

Re: [Tutor] New to Python

2009-10-27 Thread Kent Johnson
On Tue, Oct 27, 2009 at 11:35 AM, asteri...@petlover.com wrote: Hi there, How do you connect to a different server using python? (I have not used python before) What kind of connection? The Python standard library includes modules which support raw sockets, http, ftp, smtp, xml-rpc and

Re: [Tutor] New to Python

2009-10-27 Thread Alan Gauld
asteri...@petlover.com wrote How do you connect to a different server using python? (I have not used python before) Have you programmed before? If so in what languages? If you are a complete novice any kind of network programming is quite a challenge. If you are experienced can you give us

Re: [Tutor] New to Python

2009-10-21 Thread Alan Gauld
lfsee...@comcast.net wrote Just started looking at Python Welcome to the list. I was wondering if there was a Preset Menu and file system module Not really sure what you are expecting here? Can you give examples of what you would expect these to do? There are operations for acting on

Re: [Tutor] New to Python

2009-10-21 Thread Wayne
On Tue, Oct 20, 2009 at 4:55 PM, lfsee...@comcast.net wrote: Hello all, Just started looking at Python, I have not programmed in a good 8-10 years now, and find myself woefully behind. Luckily it shouldn't take you too much time with python - it's a lot easier to learn/relearn than a lot of

Re: [Tutor] New to python: some advises for image processing tool

2009-10-13 Thread Stefan Behnel
Nicola De Quattro wrote: while(var !=q0) print Please select an action from the menu below: -- o) Open an image +) Rotate the image of 1° clockwise -) Rotate the image of -1° clockwise r)

Re: [Tutor] New to python: some advises for image processing tool

2009-10-13 Thread Eike Welk
On Monday 12 October 2009, Nicola De Quattro wrote: I've started to write something about input image loading and rotation. My goal is that, from graphical interface, the user will be able to rotate an image at steps (perhaps using two buttons) or by entering the amount of degree the image has

Re: [Tutor] New to python: some advises for image processing tool

2009-10-13 Thread Nicola De Quattro
You currently think about user interface stuff and not about the real problem, analyzing spectra of stars. Well, I think is exactly as you say. I've never developed entirely a tool, so I started with the container rather then the content. Thanks for the very useful (however simple) observation

Re: [Tutor] New to python: some advises for image processing tool

2009-10-12 Thread Nicola De Quattro
Hi all I'm starting with my project (rather slowly...) and I want to give you a little update (and do some trivial questions). I've started to write something about input image loading and rotation. My goal is that, from graphical interface, the user will be able to rotate an image at steps

Re: [Tutor] New to python: some advises for image processing tool

2009-10-06 Thread Nicola De Quattro
Excuse me for the mistake, this list is a little different with respect to Yahoo Groups. Below my comments: Now I think I could begin with some simple script to come into the Python world, so I'll start building the easiest components of final tool (perhaps opening the image and

Re: [Tutor] New to python: some advises for image processing tool

2009-10-05 Thread Wayne
I think you forgot to hit Reply-all, so forwarding on to the list with my response On Mon, Oct 5, 2009 at 11:38 AM, Nicola De Quattro lead.express...@gmail.com wrote: Wayne ha scritto: The most difficult task would be analyzing the image and possibly some of the graph generation. Yes I

Re: [Tutor] New to python: some advises for image processing tool

2009-10-02 Thread Stefan Behnel
Nicola De Quattro wrote: So I've to open an image (various formats, first I could need only .fits), to process the image in order to select the interesting strip containing the star and the spectrum (first image of the link posted, but I hope I can select the strip not only in the horizontal

Re: [Tutor] New to python: some advises for image processing tool

2009-10-02 Thread Wayne
On Fri, Oct 2, 2009 at 8:44 AM, Stefan Behnel stefan...@behnel.de wrote: Nicola De Quattro wrote: So I've to open an image (various formats, first I could need only .fits), to process the image in order to select the interesting strip containing the star and the spectrum (first image of

Re: [Tutor] New to python: some advises for image processing tool

2009-10-02 Thread Sander Sweers
2009/10/2 Stefan Behnel stefan...@behnel.de: Without looking further into your problem, there are two (main) general purpose image manipulation libraries for Python (that I know of) that you may want to look at: PIL and ImageMagick. At least ImageMagick supports FITS. There is a python module

Re: [Tutor] New to python: some advises for image processing tool

2009-10-02 Thread Eike Welk
Hello Nicola! For scientific computing there are the Numpy and Scipy libraries: http://www.scipy.org/ For making graphs there is Matplotlib: http://matplotlib.sourceforge.net/ You should join the mailing lists of these projects. For the GUI I would use QT4:

Re: [Tutor] New to python: some advises for image processing tool

2009-10-02 Thread Rüdiger Wolf
I remember reading some Python tutorials that where written specifically for Astronomers. Did a search on Google. This is not the tutorial I originally read but maybe you will find it to be useful. http://www.stsci.edu/hst/training/events/Python/readManDispImages_WU.pdf Regards Rudiger On Fri,

Re: [Tutor] New to python(g)=python g=(embarrassing)

2008-07-07 Thread Jeremiah Stack
Hey I want to thank you all for your patience, suggestions, constructive criticism, and idea builders! I now have good thoughts to start, i will now try some of the suggested tutorials and activities. For me before the sugestions the turorials were like reading the sentence the tree is tall

Re: [Tutor] New to python(g)=python g=(embarrassing)

2008-07-07 Thread Marc Tompkins
I did wonder whether there was a joke there... is the Pythong the hot new trend in beachwear? On a creepier note, if you make the mistake of going to python dot com instead of dot org, a Pythong is the least of your worries... eeewww. -- www.fsrtechnologies.com

  1   2   >