Re: [Tutor] PyVISA GPIB

2011-04-01 Thread Donald Bedsole
Sorry, On Fri, Apr 1, 2011 at 1:00 PM, Donald Bedsole wrote: > Hi Mark, > > On Fri, Apr 1, 2011 at 11:42 AM,   wrote: >>  I would like to control electronic instruments with PyVISA. I have >> downloaded PyVISA and unpacked the files into the Python27/lib/site-packages &

Re: [Tutor] PyVISA GPIB

2011-04-01 Thread Donald Bedsole
Hi Mark, On Fri, Apr 1, 2011 at 11:42 AM, wrote: >  I would like to control electronic instruments with PyVISA. I have > downloaded PyVISA and unpacked the files into the Python27/lib/site-packages > dir and in the IDLE > GUI I run "import visa' for a quick check and I get this error: > > impo

Re: [Tutor] Error in programming

2011-03-24 Thread Donald Bedsole
Hi Lea, On Fri, Mar 25, 2011 at 1:27 AM, Lea Parker wrote: > Hello > > > > Just wondering if you have some time to cast your eyes over another  basic > program. > > > > # Prompt user for data > > def main(): > >     print 'This program is to calculate your ticket sales to the softball > game' > >

Re: [Tutor] Guessing Game Program

2011-03-24 Thread Donald Bedsole
On Fri, Mar 25, 2011 at 12:53 AM, Donald Bedsole wrote: > Hi Malcolm :-) > > On Fri, Mar 25, 2011 at 12:37 AM, Malcolm Newsome > wrote: >> Hey Don! >> >> I posted an eerily similar request to another python group about two weeks >> ago!  I, too, am very new

[Tutor] Guessing Game Program

2011-03-24 Thread Donald Bedsole
Hi folks, This is a little program I've written to bring together some things I've been trying to learn (not an attempt, of course, to make an interesting game).. I've been working my way through a beginner's tutorial, and except for a very basic program I wrote in C++ one time, I think this is t

Re: [Tutor] help with user input

2011-03-21 Thread Donald Bedsole
Thank you, Marc On Mon, Mar 21, 2011 at 4:47 PM, Marc Tompkins wrote: > On Mon, Mar 21, 2011 at 1:12 PM, Donald Bedsole wrote: >> >> This works fine as long as the user enters a number.  However, if they >> enter anything else, they just get the first :else statement, &q

[Tutor] help with user input

2011-03-21 Thread Donald Bedsole
I'm going through a tutorial called "Learn Python the Hard Way" by Zed Shaw. At the end of his lessons he has "Extra Credit" sessions, and I'm stuck on one. I'm on lesson 35, here is a link to it: http://blamcast.net/python/ex35.html The lesson involves creating a very simple text based game.

Re: [Tutor] New to programming

2011-03-18 Thread Donald Bedsole
Hi, Welcome to the list: On Fri, Mar 18, 2011 at 7:48 PM, Savyn - OpenERP Mail wrote: > Dear Everyone > > I am new to programming (a passion mainly). I have no background in > programming.  The python.org beginner tutorial seems hard after a few > chapters or not sure how to merge requirement w

Re: [Tutor] python.py with no console

2011-03-18 Thread Donald Bedsole
Hello, On Fri, Mar 18, 2011 at 12:46 PM, sihong lin wrote: > hi, > > Those days the idle couldn't open in windows 7. Today I found the type of > file python.py(c:\Python27\lib\idlelib) is "no console". what is it means? > that is why the idle couldn't open, right? > > thanks > > Sharon > Can you

Re: [Tutor] python.py with no console

2011-03-18 Thread Donald Bedsole
Hi folks, On Fri, Mar 18, 2011 at 3:16 PM, Alan Gauld wrote: > > "sihong lin" wrote >> >> Those days the idle couldn't open in windows 7. >> Today I found the type of file python.py(c:\Python27\lib\idlelib) is >> "no console". what is it means? that is why the idle couldn't >> open, right? > > N

Re: [Tutor] Boolean question

2011-03-16 Thread Donald Bedsole
Hi Jack, On Wed, Mar 16, 2011 at 1:55 AM, Jack Trades wrote: 'and' evaluates one argument at a time and returns immediately if the argument is False. > And "or" works in the inverse manner? It "evaluates one argument at a time and returns immediately if the argument is [True]." ? For examp

Re: [Tutor] Boolean question

2011-03-16 Thread Donald Bedsole
On Wed, Mar 16, 2011 at 5:53 PM, bob gailer wrote: > > Thing in this context means 'anything". could be a string, number, list, any > Python object. > Ok, thanks Bob. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options

Re: [Tutor] Boolean question

2011-03-16 Thread Donald Bedsole
Hi Allen, > Boolean algebra can be a weird thing to get your head around > the first time you come across it :-) Yes, :-) > Here are some of the standard rules: > > True and thing = thing > False and thing = False > True or thing = True > False or thing = thing > Thanks for your response and fo

Re: [Tutor] Boolean question

2011-03-15 Thread Donald Bedsole
Hi Jack, On Wed, Mar 16, 2011 at 1:50 AM, Jack Trades wrote: > On Wed, Mar 16, 2011 at 12:22 AM, Donald Bedsole > wrote: > >> not (False and True) >> >> Python evaluates it as "True" > > >> >> 1)You evaluate what's in the parentheses f

[Tutor] Boolean question

2011-03-15 Thread Donald Bedsole
Hi folks, I'm working on Boolean Operators right now, and I'm getting it for the most part. But, could someone make sure I'm understanding this one expression correctly? not (False and True) Python evaluates it as "True" Is it because: 1)You evaluate what's in the parentheses first. A thing ca

[Tutor] first steps

2011-03-15 Thread Donald Bedsole
Ryan, Did you enter it like this at the prompt: >>> chaos.main() statement If so, that's a problem. Your function was called: "main()", so if you type chaos.main(), Python doesn't know what you're talking about. ___ Tutor maillist - Tutor@python.or

[Tutor] first steps

2011-03-15 Thread Donald Bedsole
Hi Ryan, Also, when it works correctly, IDLE won't run the program again via the >>> chaos.main() statement. I get this: Traceback (most recent call last): File "", line 1, in chaos.main() NameError: name 'chaos' is not defined I think IDLE is looking for a file name to run. If your file