Question: python programming Computing Science 120.s10 Lab #B2- Page 2 of 5 Task 2: Lists, Loops, and Functions What outputs would be generated by the following

 python programming Computing Science 120.s10 Lab #B2- Page 2 of 5

python programming

Computing Science 120.s10 Lab #B2- Page 2 of 5 Task 2: Lists, Loops, and Functions What outputs would be generated by the following Python segments? Try to run the following program with two different sets of inputs: 65; tax rate 41 ; tax rate Case 1: price 10 25%-. price a. Explain verbally. def HST (price, taxRate) try:+ tax= float (price) float(taRate)/100p * except print ("***Error: Wrong data type**) print ("Please try again") print()+ return tax # Main input ("Enter rice price : ")- = taxRate input ("Enter tax rate: ") 4 +4 tax HST (price, taxRate) = print("HST tax is: , tax) b. Explain verbally. change (myList) length len (myList)- myListlint (length/2)1 myList[1] "Bit" myList[-2] "coin" returne def Mouse" Main Program * change (1.2) + print (L2)+

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!