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

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

[Tutor] Hello!

2016-09-09 Thread Eric Gardner
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? -- Eric G ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options:

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

[Tutor] Hello everybody

2016-06-13 Thread Влад
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 ** ___ Tutor maillist -

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

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: [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

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

[Tutor] Hello! Questions

2016-02-17 Thread Marco Soldavini
Hi, I am almost new to python and I am trying to build a not so easy app (but very neat and useful) related to industrial automation. Is this the right place to knock down problems one by one? Basically my app has several interactions but the most important is reading values from an embedded

[Tutor] Hello! Questions

2016-02-17 Thread Marco Soldavini
I hit the send button too early. anyway Basically something like while (stop condition false) read data write data into local array or something wait sample time Thanks marco ___ Tutor maillist - Tutor@python.org To unsubscribe or

[Tutor] hello.

2013-06-12 Thread Lolo Lolo
http://pictmania.com/tez.php___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

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 virgiliorodrigue...@gmail.com 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

[Tutor] Hello, and a newbie question

2013-04-16 Thread Andy McKenzie
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 write in PHP, I was entirely self-taught, and

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, 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

Re: [Tutor] Hello, and a newbie question

2013-04-16 Thread Andy McKenzie
On Tue, Apr 16, 2013 at 4:18 PM, Dave Angel da...@davea.name 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

Re: [Tutor] Hello, and a newbie question

2013-04-16 Thread Dave Angel
On 04/16/2013 05:20 PM, Andy McKenzie wrote: SNIP 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

Re: [Tutor] Hello, and a newbie question

2013-04-16 Thread Andy McKenzie
On Tue, Apr 16, 2013 at 5:31 PM, Dave Angel da...@davea.name wrote: On 04/16/2013 05:20 PM, Andy McKenzie wrote: SNIP 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

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 da...@davea.name wrote: SNIP 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

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 eryksun
On Tue, Apr 16, 2013 at 6:17 PM, Dave Angel da...@davea.name 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

Re: [Tutor] Hello, and a newbie question

2013-04-16 Thread Andy McKenzie
On Tue, Apr 16, 2013 at 7:39 PM, Alan Gauld alan.ga...@btinternet.comwrote: 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

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 eryksun
On Tue, Apr 16, 2013 at 7:57 PM, Virgilio Rodriguez Jr virgiliorodrigue...@gmail.com 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

Re: [Tutor] Hello, and a newbie question

2013-04-16 Thread eryksun
On Tue, Apr 16, 2013 at 8:15 PM, eryksun eryk...@gmail.com 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 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 simply

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

2012-10-04 Thread Walter Prins
On 3 October 2012 04:39, Palice Fan magicwizards...@gmail.com 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

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:

[Tutor] Hello Python Tutor - help please!

2012-08-23 Thread Ron Painter
Hi, Cecilia: I came across your posts when catching up with my tutor-request digest emails. I did not see the Udacity site mentioned--if it was, my apologies for the repetition. Udacity.com, a free online education service, offers a number of high-quality courses. They include interactive

[Tutor] Hello Python Tutor - help please!

2012-08-22 Thread Cecilia Chavana-Bryant
Dear all, I am just returning to my doctoral studies after a 7-month medical leave and desperately trying to catch up for lost time. I am COMPLETELY new to programming, well, I did try learning C for 3 weeks 3 yrs ago (with very little success) but had to stop and then spent 2 years in the

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

2012-08-22 Thread Mario Cacciatore
. -Mario -- From: Cecilia Chavana-Bryant Sent: 8/22/2012 6:35 AM To: tutor@python.org Subject: [Tutor] Hello Python Tutor - help please! Dear all, I am just returning to my doctoral studies after a 7-month medical leave and desperately trying to catch up for lost time

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

2012-08-22 Thread leon zaat
...@ouce.ox.ac.uk To: tutor@python.org Date: Wed, 22 Aug 2012 10:10:46 + Subject: [Tutor] Hello Python Tutor - help please! Dear all, I am just returning to my doctoral studies after a 7-month medical leave and desperately trying to catch up for lost time. I am COMPLETELY new

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 Cecilia Chavana-Bryant
) [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 cecilia.chavana-bry...@ouce.ox.ac.ukmailto:cecilia.chavana-bry...@ouce.ox.ac.uk wrote

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

2012-08-22 Thread Joel Goldstick
Direct: +44 (0)1865 275861 Fax: +44 (0)1865 275885 From: William 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

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

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 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

[Tutor] Hello Python Tutor - help please!

2012-08-22 Thread Cecilia Chavana-Bryant
Steven, (now from my new account without all the long-winded signature) can files be attached to posts in this forum? Cecilia ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options:

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

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~

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(b%s/b 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 rus...@winder.org.uk wrote: On Mon, 2012-05-14 at 00:19 +0100, Mark Lawrence

[Tutor] hello~

2012-05-13 Thread Keitaro Kaoru
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 message to the rooms he is in, tell, unlisted =

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

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

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

2011-11-12 Thread Robert Sjoblom
On 12 November 2011 07:27, tutor-requ...@python.org 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'

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

2011-11-11 Thread Nathaniel Trujillo
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 have to conclude that the

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

2011-11-11 Thread delegbede
=dudupay@python.org Date: Fri, 11 Nov 2011 21:16:30 To: Tutor@python.org Subject: [Tutor] Hello again. Still the same problem, different question. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http

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 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.

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 of

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 object (stream);

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

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 stefan...@behnel.de 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,

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 stefan...@behnel.de 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 16:21, xDog Walker thud...@gmail.com 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

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 Walkerthud...@gmail.com 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!,

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 d...@davea.name 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 a

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

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 st...@pearwood.info 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.

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 as well

[Tutor] Hello World in Python without space

2011-07-10 Thread 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 script: name=world print(Hello, name,!) The result is: Hello world ! However, I don't want the space before the exclamation mark. I want this:

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 hrober...@hotmail.com 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

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 the exclamation

Re: [Tutor] Hello World in Python without space

2011-07-10 Thread Alan Gauld
Robert H hrober...@hotmail.com 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

[Tutor] Hello

2010-01-21 Thread Samuel de Champlain
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 maillist - Tutor@python.org To unsubscribe or change subscription options:

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 want

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 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?

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 heavy weight

[Tutor] 'Hello world'

2010-01-01 Thread Eldon L Mello Jr
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 some idiot little thing I might be overlooking I wonder if Python

Re: [Tutor] 'Hello world'

2010-01-01 Thread Andre Engels
On Fri, Jan 1, 2010 at 11:17 AM, Eldon L Mello Jr eldo...@hotmail.com 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'.

Re: [Tutor] 'Hello world'

2010-01-01 Thread Alan Gauld
Eldon L Mello Jr eldo...@hotmail.com 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 (pyshell#1, line 1) Looks like you are using a v2 tutorial, you

[Tutor] Hello again. and another question.

2008-10-02 Thread tsmundahl
Hello Trask, I have been working on the first program. 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 10.0 10.0 10.0 10.0 10.0 10.0 10.0 10.0 I know it is something simple. I am just not seeing

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 there?

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,

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

[Tutor] Hello and some questions.

2008-09-28 Thread tsmundahl
Hello all. I recently starting taking Python in my state college. I joined the Python.org users group and I posted a couple of codes examples that I was having problems with, and I am wondering if there is anyone in this community that can help me. I did get some great advice on my previous

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 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 the

[Tutor] Hello

2008-03-13 Thread Christopher Marlett
Hi, I'm in a Python class and we were given the assignment to create our own graphic and my idea was to have a program that asks the user to click six points and then create a circle using the six points they clicked. Once they've done that I want eyes and a mouth to appear in the circle. I was

Re: [Tutor] Hello

2008-03-13 Thread Greg Graham
To: tutor@python.org Subject: [Tutor] Hello Hi, I'm in a Python class and we were given the assignment to create our own graphic and my idea was to have a program that asks the user to click six points and then create a circle using the six points they clicked. Once they've done that I want eyes

[Tutor] hello can you help me solve this problem

2008-03-05 Thread Christopher Marlett
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 you get the positions you want. Make

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 you

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 same

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 this

[Tutor] Hello and newbie question about self

2008-02-03 Thread Patrick
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. Can anyone please point me to a document that explains self in

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(struct

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 tutorial.

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 code samples

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 explanation what self is

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 explanation what self is

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 = barval;

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. This

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 self pointer

  1   2   >