Trace through what values are stored in each variable as the code executes and what values will be displayed. Assume the user enters Nassau, 10 in that order. county = input ('Enter the county you...

I need the answer as soon as possibleTrace through what values are stored in each variable as the code executes and what values will be displayed. Assume the user enters Nassau, 10 in that order.<br>county = input ('Enter the county you live in: ')<br>credits = int (input ('Enter the number of credits you are taking: '))<br>if county == 'Nassau' and credits >= 12:<br>tuition = 2000<br>elif county == 'Suffolk':<br>tuition = 3990<br>elif credits >= 10:<br>tuition = credits * 160<br>else:<br>tuition = credits * 30<br>print (tuition)<br>county<br>credits<br>tuition<br>output<br>

Extracted text: Trace through what values are stored in each variable as the code executes and what values will be displayed. Assume the user enters Nassau, 10 in that order. county = input ('Enter the county you live in: ') credits = int (input ('Enter the number of credits you are taking: ')) if county == 'Nassau' and credits >= 12: tuition = 2000 elif county == 'Suffolk': tuition = 3990 elif credits >= 10: tuition = credits * 160 else: tuition = credits * 30 print (tuition) county credits tuition output

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here