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)
The answer is D. Just try:
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)
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Sam_sgv
1 week agoSam_sgv
1 week agoBillybob0604
2 months, 2 weeks ago