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