Python_Institute
PCEP-30-02 · Question #298
PCEP-30-02 Question #298: Real Exam Question with Answer & Explanation
Sign in or unlock PCEP-30-02 to reveal the answer and full explanation for question #298. The question stem and answer options stay visible for context.
Question
order = int(input('Please enter the order value: '))
state = input('Please enter the state (as postal abbreviation): ')
delivery = 0
if state in ['NC', 'SC', 'VA']:
if order <= 1000:
delivery = 70
elif 1000 < order < 2000:
delivery = 80
else:
delivery = 90
else:
delivery = 50
if state in ['GA', 'WV', 'FL']:
if order > 1000:
delivery += 30
if order < 2000 and state in ['WV', 'FL']:
delivery += 40
else:
delivery += 25
print(delivery)
Options
- A120
- B105
- C80
- D90
Unlock PCEP-30-02 to see the answer
You've previewed enough free PCEP-30-02 questions. Unlock PCEP-30-02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.