The following code segment is used for both parts 5 and 6. 1…

The following code segment is used for both parts 5 and 6. 1| if subscription == “Premium” and hd_available:2|     print(“You’ve been upgraded to HD!”)3| elif (subscription == “Premium” or subscription == “Standard”) and sd_available:4|     print(“You’ve been upgraded to SD!”)5| else:6|     print(“You’re on the basic plan.”)   Which of the following values for subscription, hd_available, and sd_available would result in “You’ve been upgraded to HD!” being printed?

1| try: 2| some_function() 3| except Exception as the_error:…

1| try: 2| some_function() 3| except Exception as the_error: 4| print(the_error) 5| [fill in this blank]6| print(“Code complete!”) The code segment above attempts to run a function called some_function, but if it fails, it tries to print the error that occurred. Only if some_function() ran without errors is “Code complete!” printed at the end. Which of the following lines would complete this code so that it behaves as intended?