nerdexam
Python_Institute

PCEP-30-02 · Question #329

Which of the following inputs will get the user a discount of 5%? day = input('Enter the day of the week:') discount = 3 if day == 'Wednesday': discount += 5 elif day == 'Thursday': discount += 7…

The correct answer is E. Friday. See the full explanation below for the reasoning.

Question

Which of the following inputs will get the user a discount of 5%? day = input('Enter the day of the week:') discount = 3 if day == 'Wednesday': discount += 5 elif day == 'Thursday': discount += 7 elif day == 'Saturday': discount += 10 elif day == 'Sunday': discount += 20 else: discount += 2

Options

  • ASunday
  • BThursday
  • CWednesday
  • DSaturday
  • EFriday

How the community answered

(24 responses)
  • A
    4% (1)
  • B
    4% (1)
  • D
    13% (3)
  • E
    79% (19)

Community Discussion

No community discussion yet for this question.

Full PCEP-30-02 Practice