Results 1 to 3 of 3

Math Help - Python questions...Help!!!(Basics/Boolean/Choice)

  1. #1
    Newbie
    Joined
    Dec 2007
    From
    UK
    Posts
    23

    Question Python questions...Help!!!(Basics/Boolean/Choice)

    hi

    Could someone please help me write the code for the attached python questions?

    *
    Attached Files Attached Files
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Super Member
    earboth's Avatar
    Joined
    Jan 2006
    From
    Germany
    Posts
    5,829
    Thanks
    123
    Quote Originally Posted by *skywalker* View Post
    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.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Dec 2007
    From
    UK
    Posts
    23
    hi...

    thanks 4 the help with program 1!

    iv attached some info on the structure of if,else and elif structure in python... (for program 3! - leap year?!?)

    *




    Attached Files Attached Files
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Need help with these 3 Multiple Choice Questions
    Posted in the Statistics Forum
    Replies: 1
    Last Post: January 20th 2010, 09:24 PM
  2. Multiple choice questions
    Posted in the Trigonometry Forum
    Replies: 1
    Last Post: November 23rd 2009, 11:37 AM
  3. Multiple choice questions!
    Posted in the Statistics Forum
    Replies: 3
    Last Post: July 23rd 2008, 06:43 AM
  4. Boolean Algebra...(python)
    Posted in the Math Software Forum
    Replies: 1
    Last Post: December 9th 2007, 09:01 AM
  5. python questions...please help!!
    Posted in the Math Software Forum
    Replies: 3
    Last Post: December 9th 2007, 08:06 AM

Search Tags


/mathhelpforum @mathhelpforum