110k views
4 votes
1|>if submission_time > deadline_time and not extension_granted:

2|>>print("Your assignment is too late!")
Q: Which of the following values for submission_time, deadline_time, AND extension_granted would result in "Your assignment is too late!" being printed?

User Tan Viet
by
8.6k points

1 Answer

4 votes

Final answer:

The message 'Your assignment is too late!' will be printed when the submission is made after the deadline and no extension has been granted.

Step-by-step explanation:

In the given code, the condition submission_time > deadline_time checks if the submission is made after the deadline. The condition not extension_granted checks if an extension has not been granted. If both conditions are true, the message 'Your assignment is too late!' will be printed.

For example, if the submission_time is 10:00 PM, the deadline_time is 9:00 PM, and the extension_granted is False, then the message 'Your assignment is too late!' will be printed.

Therefore, the values for submission_time, deadline_time, and extension_granted that would result in the message being printed are submission_time > deadline_time and not extension_granted.

User Jan Derk
by
8.0k points

No related questions found