Lab 0

Lab Report Title

Lab Description:

asdfasdf asdfas asdfa dfafs dfa sdfa sdfasdfasdf.asd asdf.asdfasdfasdfa

sddfgdfgfd.

Code:

current_time_str = input(“what is the current time (in hours 0-23)?”)
 wait_time_str = input(“How many hours do you expect to wait for”)
current_time_int = int(current_time_str)
 wait_time_int = int(wait_time_str)
final_time_int = current_time_int + wait_time_int
final_answer = final_time_int % 24
print(“The time after waiting is: “, final_answer)

 

Screenshot:

K1

One thought on “Lab 0

  1. Albert Gonzalez Post author

    current_time_str = input(“what is the current time (in hours 0-23)?”)
    wait_time_str = input(“How many hours do you expect to wait for”)

    current_time_int = int(current_time_str)
    wait_time_int = int(wait_time_str)

    final_time_int = current_time_int + wait_time_int

    final_answer = final_time_int % 24

    print(“The time after waiting is: “, final_answer)

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *