[Tutor] Codehelp: confused by the output in IDLE

2005-12-16 Thread vikas mohan
Hi again!   The following is a piece of code that I have written: def funcA(x): # function describiing the oddness or eveness of an x number  if x%2 == 0:     print x, "is even"   else:     print x, "is odd"    def funcB(y): # function describiing the oddness or eveness of an y number   if y%2 ==0

[Tutor] How to open a file with images

2005-12-16 Thread vikas mohan
Hi everybody!   In Java we have the appletviewer and frames, through which we can access image files. In python, if I want to open an image file in IDLE, how can I do that, and what should my command look like?   Many thanks   Vikas ___ Tutor maillist -

Re: [Tutor] bnf

2005-12-10 Thread vikas mohan
Hi again   I have a question regarding lowercase|uppercase. How can one turn an input, and output it back in lowercase or uppercase?  cheers/V  On 12/10/05, david <[EMAIL PROTECTED]> wrote: ::= is bnf notation for "is defined as"   please spend that extra minute googling before you bother all the

Re: [Tutor] Can I get some feedback on my currency converter program

2005-12-09 Thread vikas mohan
choice == "£":    Rupees = input("UK Sterling:")    print "Rupees:",rupees_from_pounds(Rupees)     elif choice == "eu":    Rupees = input("Euros:")    print "Rupees:",rupees_from_euros(Rupees)    elif choice != "q":    print_o

[Tutor] Can I get some feedback on my currency converter program

2005-12-09 Thread vikas mohan
Hi all, this is my first program in python.   It's a currency converter mini-program, but I am not getting the desired output. What wrong am I doing here?   Program code:   #converts currencies to Indian rupees def print_options():    print "Options:"    print " 'p' print options"    print " 'c' c