Re: [Tutor] Hello!

2016-09-09 Thread Joaquin Alzola
> I don't know if i'm sending the email to the right address but here it goes!. > Would Python be a suitable language for first time learners like me? I suppose it depends on each one but from my experience I try with C and then Java without finding the feeling for it ... Then I learn python o

Re: [Tutor] Hello!

2016-09-09 Thread Alan Gauld via Tutor
On 09/09/16 17:21, Eric Gardner wrote: > I don't know if i'm sending the email to the right address but here it > goes!. Would Python be a suitable language for first time learners like me? Yes, this is the right address, welcome. And yes, Python is an excellent language with which to learn progr

Re: [Tutor] Hello everybody

2016-06-14 Thread Joseph John
On Mon, Jun 13, 2016 at 11:55 PM, Влад <79099012...@yandex.ru> wrote: >Hi. I've just begin with Python? I'm 34. Is it late or what? If it is - > I >will cut it out. What you think guys? >** > Here myself 48 crossed, just started taking python step by step Welcome to the herd >--

Re: [Tutor] Hello everybody

2016-06-13 Thread Alan Gauld via Tutor
On 13/06/16 20:55, Влад wrote: >Hi. I've just begin with Python? I'm 34. Is it late or what? If it is - I >will cut it out. What you think guys? No you are just a young whippersnapper. I've had students use my tutorial in their 70s (and in their pre-teens too) But is this also your start

Re: [Tutor] Hello everybody

2016-06-13 Thread Joel Goldstick
On Mon, Jun 13, 2016 at 3:55 PM, Влад <79099012...@yandex.ru> wrote: >Hi. I've just begin with Python? I'm 34. Is it late or what? If it is - I >will cut it out. What you think guys? >** >--** >** **, >, PR- Rich PR >+79099012930 >

Re: [Tutor] Hello! Questions

2016-02-19 Thread Marco Soldavini
On Fri, Feb 19, 2016 at 3:32 PM, Peter Otten <__pete...@web.de> wrote: > > > Also, after reading http://openopc.sourceforge.net/api.html I wonder if it > wouldn't be better to go with the timestamp provided by the server > > bool1.append(opc.read(".watchdog")) > yes but my next

Re: [Tutor] Hello! Questions

2016-02-19 Thread Peter Otten
Marco Soldavini wrote: Random remarks about your code: > #While loop - scanning and storing OPC values at scan rate > while (abort == 0): The loop continues to work if you change it to while True: > # ESC pressed? > if msvcrt.kbhit() and ord(msvcrt.getch()) == 27: > abort = 1

Re: [Tutor] Hello! Questions

2016-02-19 Thread Alan Gauld
On 19/02/16 07:51, Marco Soldavini wrote: > Sorry, Here my code in plaintext > ... thanks >> Better is to use a dictionary with your "variables" >> data[keyName].append(value) > Ok so I will look more into dictionaries, it is like hash tables? Exactly. -- Alan G Author of the Learn to Progr

Re: [Tutor] Hello! Questions

2016-02-19 Thread Marco Soldavini
Sorry, Here my code in plaintext #While loop - scanning and storing OPC values at scan rate while (abort == 0):     # ESC pressed?     if msvcrt.kbhit() and ord(msvcrt.getch()) == 27:         abort = 1         break     # Server up     if opc.ping():         if opc['.run_batch'] == True and re

Re: [Tutor] Hello! Questions

2016-02-18 Thread Alan Gauld
On 18/02/16 21:17, Marco Soldavini wrote: > *# While loop - scanning and storing OPC values at scan rate **while *(abort == 0): > > > *# ESC pressed? **if *msvcrt.kbhit() *and *ord(msvcrt.getch()) == 27: > abort = 1 > > As you can see your code is all messed up. You need to post

Re: [Tutor] Hello! Questions

2016-02-18 Thread Marco Soldavini
On Wed, Feb 17, 2016 at 11:13 AM, Alan Gauld wrote: > > My first question is about data types, data structures in general and how > > to organize an efficient loop for recording data. > > > while (stop condition false) > >read data > >write data into local array or something > >wait

Re: [Tutor] Hello! Questions

2016-02-17 Thread Alan Gauld
On 16/02/16 20:19, Marco Soldavini wrote: > Is this the right place to knock down problems one by one? Yes, although we are limited in scope to Python language and standard library so for anything specific to openopc you will probably need to ask on its support forum/list. > I already tested thi

Re: [Tutor] Hello, and a newbie question

2013-04-19 Thread Prasad, Ramit
eryksun wrote: > On Tue, Apr 16, 2013 at 7:57 PM, Virgilio Rodriguez Jr > wrote: > > Can someone please do me the favor and remove me from this god forsaken > > email list I am sorry I signed up all it has done is taken over my phone and > > rings all night long with emails I am not interested in

Re: [Tutor] Hello, and a newbie question

2013-04-16 Thread Sander Sweers
On 04/17/2013 02:34 AM, eryksun wrote: > I just went through the steps. You don't even need your password. > Enter your email address in the bottom field of the list info page: > > http://mail.python.org/mailman/listinfo/tutor > > Click the button that says "Unsubscribe or edit options". Then sim

Re: [Tutor] Hello, and a newbie question

2013-04-16 Thread eryksun
On Tue, Apr 16, 2013 at 8:15 PM, eryksun wrote: >> Can someone please do me the favor and remove me from this god forsaken >> email list I am sorry I signed up all it has done is taken over my phone and >> rings all night long with emails I am not interested in any more because it >> is just too m

Re: [Tutor] Hello, and a newbie question

2013-04-16 Thread eryksun
On Tue, Apr 16, 2013 at 7:57 PM, Virgilio Rodriguez Jr wrote: > Can someone please do me the favor and remove me from this god forsaken > email list I am sorry I signed up all it has done is taken over my phone and > rings all night long with emails I am not interested in any more because it > is

Re: [Tutor] Hello, and a newbie question

2013-04-16 Thread Steven D'Aprano
On 17/04/13 01:58, Andy McKenzie wrote: 1) Python 2.7 or 3.x? I know I'm going to want to do some work with NLTK (which appears to only have an alpha version out for Python 3), but I've just gone through the hassle of dealing with an upgrade from PHP 4 to 5.3, and I'd rather not start learning

Re: [Tutor] Hello, and a newbie question

2013-04-16 Thread Andy McKenzie
On Tue, Apr 16, 2013 at 7:39 PM, Alan Gauld wrote: > On 16/04/13 22:20, Andy McKenzie wrote: > > For instance: output of running print_r on a very short dictionary from >> PHP: >> >> Array >> ( >> [key3] => thing3 >> [key2] => thing2 >> [key1] => thing1 >> ) >> >> And running ppri

Re: [Tutor] Hello, and a newbie question

2013-04-16 Thread eryksun
On Tue, Apr 16, 2013 at 6:17 PM, Dave Angel wrote: > Someone else may know if "identical" has some exceptions. But as for where > to put it, you'd need it for any module (including your own script) which is > going to use the newer print() function. I think any differences will result from the I

Re: [Tutor] Hello, and a newbie question

2013-04-16 Thread Alan Gauld
On 16/04/13 22:20, Andy McKenzie wrote: For instance: output of running print_r on a very short dictionary from PHP: Array ( [key3] => thing3 [key2] => thing2 [key1] => thing1 ) And running pprint on the same dict in Python: {'key1': 'thing1', 'key2': 'thing2', 'key3': 'thing3

Re: [Tutor] Hello, and a newbie question

2013-04-16 Thread Dave Angel
On 04/16/2013 05:47 PM, Andy McKenzie wrote: On Tue, Apr 16, 2013 at 5:31 PM, Dave Angel wrote: To get 3.x functionality, you'd want to use from __future__ import print_function and I do not think that works in 2.6 or older versions. It also can be awkward even in 2.7 if you're mi

Re: [Tutor] Hello, and a newbie question

2013-04-16 Thread Andy McKenzie
On Tue, Apr 16, 2013 at 5:31 PM, Dave Angel wrote: > On 04/16/2013 05:20 PM, Andy McKenzie wrote: > >> >> >> > > >>> >>> Thanks for the advice, folks. Given that it looks like the biggest >> changes >> are unicode handling (which I'm not going to need any time soon) and the >> way the pri

Re: [Tutor] Hello, and a newbie question

2013-04-16 Thread Dave Angel
On 04/16/2013 05:20 PM, Andy McKenzie wrote: Thanks for the advice, folks. Given that it looks like the biggest changes are unicode handling (which I'm not going to need any time soon) and the way the print function works, I decided to stick with 2.7. I'm an IT guy, though unemploye

Re: [Tutor] Hello, and a newbie question

2013-04-16 Thread Andy McKenzie
On Tue, Apr 16, 2013 at 4:18 PM, Dave Angel wrote: > On 04/16/2013 11:58 AM, Andy McKenzie wrote: > >> Hey folks. >> >> I'm just starting to pick up Python, and I'd like to avoid some of the >> mistakes I made in the past. To elaborate on that, my primary >> programming/scripting experience is P

Re: [Tutor] Hello, and a newbie question

2013-04-16 Thread Dave Angel
On 04/16/2013 11:58 AM, Andy McKenzie wrote: Hey folks. I'm just starting to pick up Python, and I'd like to avoid some of the mistakes I made in the past. To elaborate on that, my primary programming/scripting experience is PHP, with a little bit of Perl thrown in. Like so many people who wri

Re: [Tutor] Hello, and a newbie question

2013-04-16 Thread Alan Gauld
On 16/04/13 16:58, Andy McKenzie wrote: 1) Python 2.7 or 3.x? I know I'm going to want to do some work with NLTK (which appears to only have an alpha version out for Python 3), but I've just gone through the hassle of dealing with an upgrade from PHP 4 to 5.3, and I'd rather not start learning

Re: [Tutor] Hello Can someone looked at my problem? stuck

2012-10-04 Thread Walter Prins
On 3 October 2012 04:39, Palice Fan wrote: > Hello > i got stuck with the last bit of my programming practice. > Can somebody help me? > Write a program to read through a mail log, and figure out who had the most > messages in the file. The program looks for “From” lines and takes the > second pa

Re: [Tutor] hello

2012-09-28 Thread Mark Lawrence
On 17/09/2012 20:21, Fation Beqirllari wrote: I have a php code and I want to translate it to python..Can you help me please,or show me how to do it ? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mai

Re: [Tutor] Hello Python Tutor - help please!

2012-08-22 Thread Alan Gauld
On 22/08/12 21:51, Cecilia Chavana-Bryant wrote: def main(fname, sheet_name): wb = xlrd.open_workbook(fname) sh = wb.sheet_by_name(sheet_name) data1 = sh.col_values(0) data2 = sh.col_values(1) return data1, data2 fname = "Cal_File_P17.xlsx" sheet_name = "RefPanelData"

Re: [Tutor] Hello Python Tutor - help please!

2012-08-22 Thread Alan Gauld
On 22/08/12 22:51, Cecilia Chavana-Bryant wrote: Steven, (now from my new account without all the long-winded signature) can files be attached to posts in this forum? Yes they can, but we prefer if you just include them in the body if they are fairly short (<100 lines?) or put them on a pasteb

Re: [Tutor] Hello Python Tutor - help please!

2012-08-22 Thread Ray Jones
I highly recommend the Google Python class that is found on YouTube. The first video is found at http://www.youtube.com/watch?v=tKTZoB2Vjuk The supporting class materials and assignments are found at http://code.google.com/edu/languages/google-python-class/ . This series of videos begins at a pret

Re: [Tutor] Hello Python Tutor - help please!

2012-08-22 Thread Walter Prins
Hi Cecilia, You've had a lot of good replies already, but I'd like to add the following points if I may: 1) You probably should figure out as much as that's possible up front exactly you're trying to do in terms of data processing first (e.g. some idea of the stats, graphs, summaries, operations

Re: [Tutor] Hello Python Tutor - help please!

2012-08-22 Thread Alan Gauld
On 22/08/12 11:10, Cecilia Chavana-Bryant wrote: "I do not know how to programme!". Thus, I was hoping that some of you can remember how you got started and point me towards any really good interactive learning guides/materials and/or have a good learning strategy for a complete beginner. At t

Re: [Tutor] Hello Python Tutor - help please!

2012-08-22 Thread Joel Goldstick
; School of Geography and the Environment > University of Oxford > South Parks Road, Oxford, OX1 3QY > Web: http://www.eci.ox.ac.uk/teaching/doctoral/chavanabryantcecilia.php > Tel Direct: +44 (0)1865 275861 > Fax: +44 (0)1865 275885 > ________ > From: William R. Wing (Bil

Re: [Tutor] Hello Python Tutor - help please!

2012-08-22 Thread Cecilia Chavana-Bryant
m R. Wing (Bill Wing) [w...@mac.com] Sent: 22 August 2012 15:17 To: Cecilia Chavana-Bryant Cc: William R. Wing (Bill Wing) Subject: Re: [Tutor] Hello Python Tutor - help please! On Aug 22, 2012, at 6:10 AM, Cecilia Chavana-Bryant mailto:cecilia.chavana-bry...@ouce.ox.ac.uk>> wrote: Dear al

Re: [Tutor] Hello Python Tutor - help please!

2012-08-22 Thread Steven D'Aprano
Hello Cecilia, My replies are below, interleaved with your comments, which are prefixed with > marks. On 22/08/12 20:10, Cecilia Chavana-Bryant wrote: By the way, the 3 weeks I spent trying to learn C really ended up being spent trying to get to grips with using a terminal for the first time

Re: [Tutor] Hello Python Tutor - help please!

2012-08-22 Thread leon zaat
If you don't have any prior programmers skills, i would advice first to learn the basics. You will need a good foundation, before it is possible to create complex functions. Starting with complex functions is only frustrating if you don't understand the basics. From: cecilia.chavana-bry...@ou

Re: [Tutor] Hello Python Tutor - help please!

2012-08-22 Thread Mario Cacciatore
Hello, My highest recommendation for you is to start with a simple hello world program. Study that program, each line. Think about how and most importantly, why it works. Then, extend on it. Make it write to a file instead of a terminal. Then make it read from a file and print to the terminal. Th

Re: [Tutor] hello~

2012-05-15 Thread Prasad, Ramit
>as you can see i only use some of the command. it doesnt produce an error >message tho.. just repeats "return Error("%s I couldn't find %s >anywhere", user.name.title(), name.title())" Your problem might be is indenting of the else. It is indenting to be a for...else loop. Which means that if

Re: [Tutor] hello~

2012-05-14 Thread Keitaro Kaoru
i resent it but if that doesnt work. cause i sent it to myself also looks fine on my gmail.. but heres a link to pastebin http://pastebin.com/Jp7VJKGB maybe thatll help? On Mon, May 14, 2012 at 1:43 AM, Russel Winder wrote: > On Mon, 2012-05-14 at 00:19 +0100, Mark Lawrence wrote: > [...] >> Sor

Re: [Tutor] hello~

2012-05-13 Thread Russel Winder
On Mon, 2012-05-14 at 00:19 +0100, Mark Lawrence wrote: [...] > Sorry but it's unreadable to me. Have you sent this in HTML when you > should have sent in plain text? I think it is just line wrapping, email still is supposed to have no lines greater that 78 characters (RFC 2822) and some email c

Re: [Tutor] hello~

2012-05-13 Thread Mark Lawrence
On 14/05/2012 00:04, Keitaro Kaoru wrote: hey. Austin here for some reason this command. all it does it produces the error message at the bottom.. itll say my name and the persons name im trying to send the message to but thats it. heres the command. mgr.addCommand("tell", 1, "send a person a me

Re: [Tutor] Hello again. Still the same problem, different question.

2011-11-12 Thread Robert Sjoblom
On 12 November 2011 07:27, wrote: > Send Tutor mailing list submissions to >        tutor@python.org > > To subscribe or unsubscribe via the World Wide Web, visit >        http://mail.python.org/mailman/listinfo/tutor > or, via email, send a message with subject or body 'help' to >        tutor-r

Re: [Tutor] Hello again. Still the same problem, different question.

2011-11-11 Thread Andreas Perstinger
On 2011-11-12 05:16, Nathaniel Trujillo wrote: They gave me a website to go and download a version of livewires that would work (www.courseptr.com/downloads) and I went there but I could not find that download anywhere. http://www.delmarlearning.com/companions/content/1435455002/downloads/index

Re: [Tutor] Hello again. Still the same problem, different question.

2011-11-11 Thread Steven D'Aprano
Nathaniel Trujillo wrote: I realize that one of you told me that there is no livewires for python v3.1.1 but the book that I am reading teaches v3.1.1 and the code that is presented in the book has a line that imports a module from the livewires package. Now since the book covers v3.1.1, I would

Re: [Tutor] Hello again. Still the same problem, different question.

2011-11-11 Thread delegbede
Can you kindly mail the author? That might be a better way to have this resolved. Its interesting you are sticking with python v3. Cheers. Sent from my BlackBerry wireless device from MTN -Original Message- From: Nathaniel Trujillo Sender: tutor-bounces+delegbede=dudupay@python.org

Re: [Tutor] Hello World in Python without space

2011-07-17 Thread Lisi
On Saturday 16 July 2011 03:15:12 Richard D. Moores wrote: > But that makes me wonder if there isn't a simpler way to do it with > Python -- to delete the contents of a file without deleting the file? Up to now, knowing no better ;-), I have opened the file in, or copied and pasted the contents o

Re: [Tutor] Hello World in Python without space

2011-07-15 Thread Richard D. Moores
On Fri, Jul 15, 2011 at 21:38, Steven D'Aprano wrote: > > Richard D. Moores wrote: > >> But that makes me wonder if there isn't a simpler way to do it with >> Python -- to delete the contents of a file without deleting the file? > > Opening a file for writing will flush the contents. > > open(file

Re: [Tutor] Hello World in Python without space

2011-07-15 Thread Steven D'Aprano
Richard D. Moores wrote: But that makes me wonder if there isn't a simpler way to do it with Python -- to delete the contents of a file without deleting the file? Opening a file for writing will flush the contents. open(filename, 'w') will do it, taking advantage of Python's garbage collecto

Re: [Tutor] Hello World in Python without space

2011-07-15 Thread Richard D. Moores
On Fri, Jul 15, 2011 at 17:16, Dave Angel wrote: > On 07/15/2011 07:39 PM, Richard D. Moores wrote: >> with open("C:/test/test.txt", "a") as file_object: >>      print("Hello, world!", file=file_object) >> >> Yes, that works for me with Windows Vista. However, if test.txt is >> empty, it puts in

Re: [Tutor] Hello World in Python without space

2011-07-15 Thread Dave Angel
On 07/15/2011 07:39 PM, Richard D. Moores wrote: On Fri, Jul 15, 2011 at 16:21, xDog Walker wrote: I believe on Windows, you can almost always use a forward slash in a path: C:/somewhere/somewhereelse/ with open("C:/test/test.txt", "a") as file_object: print("Hello, world!", file=file_o

Re: [Tutor] Hello World in Python without space

2011-07-15 Thread Richard D. Moores
On Fri, Jul 15, 2011 at 16:21, xDog Walker wrote: > I believe on Windows, you can almost always use a forward slash in a path: > C:/somewhere/somewhereelse/ with open("C:/test/test.txt", "a") as file_object: print("Hello, world!", file=file_object) Yes, that works for me with Windows Vista

Re: [Tutor] Hello World in Python without space

2011-07-15 Thread xDog Walker
On Friday 2011 July 15 15:58, Richard D. Moores wrote: > On Fri, Jul 15, 2011 at 14:47, Stefan Behnel wrote: > > Richard D. Moores, 15.07.2011 23:21: > >> What do I do to test.txt to make it "an object with a write(string) > >> method"? > > > > Oh, there are countless ways to do that, e.g. > > > >

Re: [Tutor] Hello World in Python without space

2011-07-15 Thread Richard D. Moores
On Fri, Jul 15, 2011 at 14:47, Stefan Behnel wrote: > Richard D. Moores, 15.07.2011 23:21: >> What do I do to test.txt to make it "an object with a write(string) >> method"? > > Oh, there are countless ways to do that, e.g. > >  class Writable(object): >      def __init__(self, something): >    

Re: [Tutor] Hello World in Python without space

2011-07-15 Thread Stefan Behnel
Richard D. Moores, 15.07.2011 23:21: On Sun, Jul 10, 2011 at 05:05, Peter Otten wrote: >>> help(print) shows print(...) print(value, ..., sep=' ', end='\n', file=sys.stdout) Prints the values to a stream, or to sys.stdout by default. Optional keyword arguments: file: a file-l

Re: [Tutor] Hello World in Python without space

2011-07-15 Thread Richard D. Moores
On Sun, Jul 10, 2011 at 05:05, Peter Otten <__pete...@web.de> wrote: > >>> help(print) > > shows > > print(...) >    print(value, ..., sep=' ', end='\n', file=sys.stdout) > >    Prints the values to a stream, or to sys.stdout by default. >    Optional keyword arguments: >    file: a file-like obje

Re: [Tutor] Hello World in Python without space

2011-07-11 Thread Emile van Sebille
On 7/10/2011 4:12 AM Robert H said... Dear all, I have Python 3.2 installed on Windows 7. I am a complete beginner playing around with the basic functions. My problem is the following script: name="world" print("Hello", name,"!") print("Hello", name+"!") Alan mentioned using concatenation

Re: [Tutor] Hello World in Python without space

2011-07-10 Thread Alan Gauld
"Robert H" wrote name="world" print("Hello", name,"!") Hello world ! However, I don't want the space before the exclamation mark. I want this: Hello world! Can anyone out there help me? Thank you. I see you've already had two answers, a third is to construct the string before printing it.

Re: [Tutor] Hello World in Python without space

2011-07-10 Thread Peter Otten
Robert H wrote: > I have Python 3.2 installed on Windows 7. I am a complete beginner playing > around with the basic functions. My problem is the following script: > > > name="world" > print("Hello", name,"!") > > > The result is: > Hello world ! > > > However, I don't want the space before

Re: [Tutor] Hello World in Python without space

2011-07-10 Thread Izz ad-Din Ruhulessin
Sending args to the print command always puts spaces between them. Try: print("Hello {name}!".format(name=name)) 2011/7/10 Robert H > Dear all, > > > I have Python 3.2 installed on Windows 7. I am a complete beginner playing > around with the basic functions. My problem is the following sc

Re: [Tutor] Hello

2010-01-21 Thread vishwajeet singh
> > On Thu, Jan 21, 2010 at 11:03 PM, Samuel de Champlain < > samueldechampl...@gmail.com> wrote: > >> This is my first message to this mailing list. >> I want to create a project with glade and pygtk on fedora. >> Can you suggest a good IDE? >> > netbeans have worked quite well for me but its

Re: [Tutor] Hello

2010-01-21 Thread Robert
Check out wingware IDE and Geany. On Thu, Jan 21, 2010 at 12:33 PM, Samuel de Champlain wrote: > This is my first message to this mailing list. > I want to create a project with glade and pygtk on fedora. > Can you suggest a good IDE? > > ___ > Tutor m

Re: [Tutor] Hello

2010-01-21 Thread Shashwat Anand
The choice of IDE is quite objective. Many of the people use vim/emacs exclusively for all the work. Eclipse with PyDev plugin too is a good choice. On Thu, Jan 21, 2010 at 11:03 PM, Samuel de Champlain < samueldechampl...@gmail.com> wrote: > This is my first message to this mailing list. > I wan

Re: [Tutor] 'Hello world'

2010-01-01 Thread Alan Gauld
"Eldon L Mello Jr" wrote programming and all but I honestly didn't expect I would have problems in my very first step which was just to print 'hello world'. print "hello world!" SyntaxError: invalid syntax (, line 1) Looks like you are using a v2 tutorial, you need to find a v3 one. The

Re: [Tutor] 'Hello world'

2010-01-01 Thread Andre Engels
On Fri, Jan 1, 2010 at 11:17 AM, Eldon L Mello Jr wrote: > Hi there, > > I must say I'm quite embarrassed about my issue. Ok, I'm a 101% newbie in > programming and all but I honestly didn't expect I would have problems in my > very first step which was just to print 'hello world'. > > Despite som

Re: [Tutor] Hello again. and another question.

2008-10-02 Thread Alan Gauld
<[EMAIL PROTECTED]> wrote I got the files to read and print out the grades and averages, but when I write these files to the other txt file, all that I get is: 10.0 10.0... I know it is something simple. I am just not seeing it. When the output doesn't vary like this you know you must be wr

Re: [Tutor] Hello again. and another question.

2008-10-02 Thread Steve Willoughby
You're doing a good job getting started with programming here, keep getting the fundamentals and then learn to refine those concepts over time. But for future reference, here are some finer points for you to keep in mind to improve your style and get a more Pythonic approach: On Thu, Oct 02, 200

Re: [Tutor] Hello again. and another question.

2008-10-02 Thread Steve Willoughby
On Thu, Oct 02, 2008 at 09:41:37PM +, [EMAIL PROTECTED] wrote: > for count in range (len(Grades)): > grades_file_2.write(str("%.2f"% (len(Grades))) + "\n") Look at what you're actually writing for each count. See anything amiss the

Re: [Tutor] Hello and some questions.

2008-09-28 Thread Alan Gauld
<[EMAIL PROTECTED]> wrote The first problem is a program that will take a list of ten grades from a user and then calculate the average value = [ ] for i in range(10): range += 1 print (int(float(raw_input("Please enter a grade, use numbers 1 - 10: "))) This is very confused. First th

Re: [Tutor] Hello and some questions.

2008-09-28 Thread Andre Engels
On Mon, Sep 29, 2008 at 1:36 AM, <[EMAIL PROTECTED]> wrote: > I did get some help in the python forums with this and I have come up the > following, but I am getting a syntax error on the line that calls out "total" > as a variable. Here is the code: The actual problem is in the previous line:

Re: [Tutor] Hello

2008-03-13 Thread Greg Graham
It appears to me that the following line would not work: >Circle = Oval(points) The variable "points" is a list of six points, and I don't know how one would define a circle or oval with 6 points. At the top part of your program, an oval is defined using two points, which makes sense. Maybe

Re: [Tutor] hello can you help me solve this problem

2008-03-05 Thread Alan Gauld
"Christopher Marlett" <[EMAIL PROTECTED]> wrote > Exercise 2.4.5.1. * Make a program scene.py creating a scene > with the graphics methods. You are likely to need to adjust the > positions of objects by trial and error until you get the positions > you want. Make sure you have graphics.py in the s

Re: [Tutor] hello can you help me solve this problem

2008-03-05 Thread bob gailer
Christopher Marlett wrote: > This may be a very broad question but whatever help you could give me would > be great. > > Exercise 2.4.5.1. * Make a program scene.py creating a scene with the > graphics methods. You are likely to need to adjust the positions of objects > by trial and error until

Re: [Tutor] Hello and newbie question about "self"

2008-02-05 Thread Tiger12506
>> I probably won't need to start writing classes but I really want to >> finish the book before I start coding something. One of the greatest mistakes of my life was to completely finish a programming book before I started coding something. It is why I cannot write a Visual Basic program to thi

Re: [Tutor] Hello and newbie question about "self"

2008-02-03 Thread Alan Gauld
"Patrick Lists" <[EMAIL PROTECTED]> wrote > I probably won't need to start writing classes but I really want to > finish the book before I start coding something. Such things are personal but I would personally recommend writing as much code as you can as soon as you can. Do the examples in the

Re: [Tutor] Hello and newbie question about "self"

2008-02-03 Thread Kent Johnson
Tony Cappellini wrote: >>> http://www.ibiblio.org/swaroopch/byteofpython/read/self.html > Is there a typo in the contents of this web page? Yes, you are right, C++ uses 'this'. Kent > > Should this statement > > Note for C++/Java/C# Programmers > > The self in Python is equivalent to the "sel

Re: [Tutor] Hello and newbie question about "self"

2008-02-03 Thread Tony Cappellini
>>http://www.ibiblio.org/swaroopch/byteofpython/read/self.html Is there a typo in the contents of this web page? Should this statement Note for C++/Java/C# Programmers The self in Python is equivalent to the "self" pointer in C++ and the this reference in Java and C#. Actually be Note for C++

Re: [Tutor] Hello and newbie question about "self"

2008-02-03 Thread Patrick Lists
Hi Alan, Alan Gauld wrote: > "Patrick" <[EMAIL PROTECTED]> wrote > >> Can anyone please point me to a document that explains "self" in >> layman's terms. > > Try the OOP topic inmy tutorial... Thanks will have a look. >> Or lacking such a doc throw in a much appreciated >> layman's explanati

Re: [Tutor] Hello and newbie question about "self"

2008-02-03 Thread Patrick
Hi Alan, Alan Gauld wrote: > "Patrick" <[EMAIL PROTECTED]> wrote > >> Can anyone please point me to a document that explains "self" in >> layman's terms. > > Try the OOP topic inmy tutorial... Thanks will have a look. >> Or lacking such a doc throw in a much appreciated >> layman's explanati

Re: [Tutor] Hello and newbie question about "self"

2008-02-03 Thread Patrick
Hi Michael, Michael Langford wrote: > In C, you may have "objectorientedesque" code like the following; > > struct net { > int foo; > int bar; > int baz; > }; > > > void populate_net( struct net* mynet, int fooval, int barval) > { > mynet->foo = fooval; > mynet->bar = ba

Re: [Tutor] Hello and newbie question about "self"

2008-02-03 Thread Patrick
Hi Kent, Kent Johnson wrote: > Patrick wrote: >> Hi guru's, >> >> New to the list. I bought O'Reilly's Learning Python (3rd edition for >> 2.5) a while back. Slowly making my way through it and was pleasantly >> surprised that Python seems easier than C. Until...I bumped into the >> "self" thingy.

Re: [Tutor] Hello and newbie question about "self"

2008-02-03 Thread Alan Gauld
"Patrick" <[EMAIL PROTECTED]> wrote > Can anyone please point me to a document that explains "self" in > layman's terms. Try the OOP topic inmy tutorial... > Or lacking such a doc throw in a much appreciated > layman's explanation what "self" is and when/where to use it? Others have given co

Re: [Tutor] Hello and newbie question about "self"

2008-02-03 Thread Kent Johnson
Patrick wrote: > Hi guru's, > > New to the list. I bought O'Reilly's Learning Python (3rd edition for > 2.5) a while back. Slowly making my way through it and was pleasantly > surprised that Python seems easier than C. Until...I bumped into the > "self" thingy. This should be covered by any tutor

Re: [Tutor] Hello and newbie question about "self"

2008-02-03 Thread Michael Langford
In C, you may have "objectorientedesque" code like the following; struct net { int foo; int bar; int baz; }; void populate_net( struct net* mynet, int fooval, int barval) { mynet->foo = fooval; mynet->bar = barval; mynet ->baz = fooval * 5; } int connect_to_net(str

Re: [Tutor] Hello

2005-08-25 Thread Eric Walker
On Wednesday 24 August 2005 03:57 pm, Jesse Lands wrote: Yes, I think its well worth it. He's a great guy and you learn lots of python tips and stuff. I need to get something to do now... ... > On Wed, 24 Aug 2005 16:49:17 -0700 (PDT) > > Eric Walker <[EMAIL PROTECTED]> wrote: > > all, > > Hello.

Re: [Tutor] Hello

2005-08-24 Thread Jesse Lands
On Wed, 24 Aug 2005 16:49:17 -0700 (PDT) Eric Walker <[EMAIL PROTECTED]> wrote: > all, > Hello... I just finished a class given by Mark Lutz > and I love python. Now I need to find a project to > hone my skills. I am sure I will be sending lots of > questions to this list. I used to use perl but

Re: [Tutor] Hello

2005-08-24 Thread John Purser
x27;; tutor@python.org Subject: Re: [Tutor] Hello In Python that's Guido.Hail('All') -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric Walker Sent: Wednesday, August 24, 2005 16:49 To: tutor@python.org Subject: [Tutor] Hello all, Hello.

Re: [Tutor] Hello

2005-08-24 Thread John Purser
In Python that's Guido.Hail('All') -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric Walker Sent: Wednesday, August 24, 2005 16:49 To: tutor@python.org Subject: [Tutor] Hello all, Hello... I just finished a class given by Mark Lutz and I love python.

Re: [Tutor] hello

2005-07-21 Thread byron
Yes, it is. :-) Byron --- Quoting dina lenning <[EMAIL PROTECTED]>: > is this where i send my questions?? This message was sent using IMP, the Internet Messaging Program. ___ Tutor mail

Re: [Tutor] hello

2005-07-21 Thread Luis N
On 7/21/05, dina lenning <[EMAIL PROTECTED]> wrote: YES...heres my problem  I am a university student..will be a teacher in 2 years hopefully..andhave taken a first year computing course that said it required NO PRIORknowledge, but i am having great difficulty. The students (71 of them) are all co

Re: [Tutor] hello

2005-07-20 Thread Liam Clarke
On this tutor list, we're not able to provide solutions to assignments or homework, but I'll help as I can. I'm also forwarding this to the list, as other people can probably help better than I. The problem you've been given is simple, (well, the Python bit is), but they haven't explained it very

Re: [Tutor] hello

2005-07-20 Thread Liam Clarke
Most likely. Are they questions regarding Python?On 7/21/05, dina lenning <[EMAIL PROTECTED]> wrote: is this where i send my questions??___Tutor maillist  -  Tutor@python.org http://mail.python.org/mailman/listinfo/tutor-- 'There is only one basic human r

Re: [Tutor] hello i need help

2004-12-16 Thread Alan Gauld
> is it possible 2 write a script for wordpad or something, Yes it is, using the COM interface. But frankly the interface to Wordpad is pretty basic. Word has much more powerful COM facilities. But... > i only started so i dont know much You probably need to do a bit of reading on the fundament

RE: [Tutor] hello i need help

2004-12-16 Thread Robert, Andrew
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Child Sent: Thursday, December 16, 2004 2:43 PM To: [EMAIL PROTECTED] Subject: Re: [Tutor] hello i need help alex biggerstaff wrote: > is it possible 2 write a script for wordpad or something, i only > starte

Re: [Tutor] hello i need help

2004-12-16 Thread Jason Child
alex biggerstaff wrote: is it possible 2 write a script for wordpad or something, i only started so i dont know much i do know a little about if ($1 == hi) && (£2 == m8) but im not sure how 2 make this apply to other programs. i can only write scripts on a thing called mIRC. ne help would b grea