
Originally Posted by
*skywalker*
hi
Could someone please help me write the code for the attached python questions?
*
Hello,
to your first program: Code:
dollars = 10
conv = 0.57
pounds = dollars * conv
print dollars,” USD are ", pounds,” GBP.”
to the 3rd program:
I don't know the syntax for an if-then-else-structure in Python. Code:
if year % 4 = 0
then isleapyear(year) = true
Translate these 2 lines into real Python code.
to the 2nd program:
I can only guess that you should use and (&) and or(|) to do this problem.