Respuesta :

If the timer is started on November 17 the thing that display under Time elapsed is that  seconds is undefined.

Which is an undefined variable?

An undefined variable is known to be a kind of a variable that is often used in a kind of a program that was said to be not previously declared in a source code.

In a lot of programming languages, this can lead to an error. Hence, If the timer is started on November 17 the thing that display under Time elapsed is that  seconds is undefined.

See full question below

Code Example 11-1

from datetime import datetime, time

def main():

input("Press Enter to start...")

start = datetime.now()

month = start.strftime("%B")

day = start.strftime("%d")

hours = start.strftime("%I")

minutes = start.strftime("%M")

am_pm = start.strftime("%p")

print("Start time:",month,day,"at",hours,":",minutes,am_pm)

input("Press Enter to stop...")

stop = datetime.now()

month = stop.strftime("%B")

day = stop.strftime("%d")

hours = stop.strftime("%I")

minutes = stop.strftime("%M")

am_pm = stop.strftime("%p")

print("Stop time: ",month,day,"at",hours,":",minutes,am_pm)

elapsed_time = stop - start

new_days = elapsed_time.days

new_minutes = elapsed_time.seconds // 60

new_hours = new_minutes // 60

new_minutes = new_minutes % 60

print("Time elapsed: ")

if new_days > 0:

print("days:",new_days)

print("hours:", new_hours, ", minutes:", new_minutes)

if __name__ == "__main__":

main()

Refer to Code Example 11-1: If the timer is started on November 17 at 4:00 pm and stopped on November 18 at 6:30 pm, what is the value of seconds at the end of the program?

a. 95400

b. seconds is undefined

c. 1800

d. cannot tell

Learn more about Code from

https://brainly.com/question/22654163

#SPJ1