Re: [Tutor] Thank you Steve.
On 05/01/16 12:02, yehudak . wrote: > Does this 'trick' work also in other programming languages? Not generally, but I'm sure there are a few specific cases. It really depends on whether they support unpacking of data structures. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
[Tutor] Thank you Steve.
Does this 'trick' work also in other programming languages? Yehuda ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
[Tutor] Thank you!
Thank you to all for your help on my SQL DDL parsing script, and thank you Alan for having this wonderful list. I got the program to work and verified the DDL is being parsed correctly. I've been working as a database administrator for many years, but before that I programmed on the mainframe. I'm used to COBOL, SQL, DB2, and latley XML. I've done some Unix scripting and VB script, taught myself some basic C and C++, with some odd Visual Basic along the way, but Python is enitirely new to me. That's why I got thrown off with the output not lining up in Notepad - I've never written anything before that could be displayed in a mode that used proportional fonts. The things I like about Python: - the forced indentation makes for really readable code - it's free! - it can be used on any platform - it can be used for scripting or for builing a stand alone program - it can work in any programming style (O-O, sturctured, etc.) I'm going to be doing a presentation on Python programming for database administrators. This script will help a lot to explain some of the basic concepts. Thanks again very much for your help. Python rocks! -- Frank L. Cranky Frankie Palmeri Risible Riding Raconteur Writer “How you do anything is how you do everything.” - from Alabama Crimson Tide training room ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Thank you!
On 16/11/11 13:50, Cranky Frankie wrote: Thank you to all for your help on my SQL DDL parsing script, and thank you Alan for having this wonderful list. Not much to do with me I'm just one the moderators who happens to flush the admin queue occasionally! :-) before that I programmed on the mainframe. I'm used to COBOL, SQL, DB2, and latley XML. I've done some Unix scripting and VB script, taught myself some basic C and C++, with some odd Visual Basic along the way, but Python is enitirely new to me. That's why I got thrown off with the output not lining up in Notepad - I've never written anything before that could be displayed in a mode that used proportional fonts. I don't believe you! :-) What you probably mean is that you haven't had a display tool that could use proportional fonts (or at least never used them!) You will hit the same problem using some Winsdows VT200 emulators, or even 3270 emulators for the mainframe if they support proportional fonts. (But never, ever try working a 3270 with proportional fonts!) You could take some plain text produced by one of your programs 20 years ago and Notepad, with the wrong font, would still cause misalignment. It's nothing to do with the output but all to do with the display tool. And its by no means a new problem, its been around since the first graphical, bitmapped, displays appeared in the 1980's... -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] Thank you. Was: Re: problem reading script
Thank you all for such a lot of very helpful replies. I have been looking through the recommended fonts and am pleasantly surprised by how clear, legible and well differentiated some of them are. I have been using Bitstream Vera Sans Mono in KWrite, which gives me all the colours and spacing and is very easy to read, but Bitstream Vera Sans Mono, like Bitstream Vera Sans itself, does not distinguish well between I and l, nor between '' and (which are in fact different, but the difference is noticeable only if you juxtapose them). I have already installed Inconsolata because there turned out to be a Debian package for it, so it took less than a minute to search for it - yes, it was there - and install it. And I have set KWrite to use it. Sadly, I am tied up all day tomorrow (it is late on Friday here) so I'll look into the other fonts on Sunday and work through the rest of your advice. I might even end up being able to code in Python - but if I do it will be because you have all hauled me over the fences. Lisi ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] Thank you
Hello Thanks .Today I learned to use operator.itemgetter() to set key. Thank you prasad ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Thank you, Alan.
I felt such a monkey until Kent convinced me that the 'else' only appeared to be un-indented. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Thank you all! was (Re: How do fix this error?)
Hey all, I would like to thank everyone here and at Programmer's Heaven for all their help. Thanks again! Gratefully, Nathan Pinno - Original Message - From: "Alan G" [EMAIL PROTECTED] To: "Nathan Pinno" [EMAIL PROTECTED]; tutor@python.org Sent: Saturday, September 17, 2005 3:12 AM Subject: Re: [Tutor] How do fix this error? Traceback (most recent call last): File "D:\Python24\add_tutor.py", line 18, in -toplevel- answer, guess = add(num1,num2) File "D:\Python24\add_tutor.py", line 5, in add guess = float(raw_input(a," + ",b," = ")) TypeError: [raw_]input expected at most 1 arguments, got 4 The error tells you what to do - give raw input 1 argument: guess = float(raw_input(a," + ",b," = ")) The commas separate the arguments. You need to create the prompt string first and then feed it to raw_input. The string formatting operators may help here. See the Simple Sequences topic on my tutor for examples of string formatting. Alan G Author of the Learn to Program web tutor http://www.freenetpages.co.uk/hp/alan.gauld ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor