Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Python Computer Science Questions?

Can someone please help me with these 3 questions the class is taught in Python and just help anwering these 3 questions.

For the 1st one I tired C. The product is 1

2nd question I tired C. check_num < 0 and > 1000

3rd question I tired D. The product is 1

and those were wrong. Can you help me with what the correct answers are see the attached photo.

Thanks a lot!!!

Attachment image

2 Answers

Relevance
  • ?
    Lv 6
    3 years ago

    1.A, variable "product" and "i" are multiply each time in the for loop. "i += 1" will not change the for loop counter.

    2.B, boolean logic "and" for it to be true both condition are met, boolean logic "or" for it to be true either one or both must be met.

    3.B, same as 1.

  • joe
    Lv 6
    3 years ago

    Sure, but why? It is your homework, so get busy !

Still have questions? Get your answers by asking now.