Question
Write two statements to read in values for my_city followed by my_state. Assign log_entry with current_time, my_city, and my_state. Values should be separated by a
Write two statements to read in values for my_city followed by my_state. Assign log_entry with current_time, my_city, and my_state. Values should be separated by a space. Sample output for given program if my_city is Houston and my_state is Texas: 2014-07-26 02:12:18: Houston Texas So far I have this code below, but I can't seem to overwrite the my_city and my_state to reflect Santa Barbara CA. current_time = '2014-07-26 02:12:18:' my_city = '' my_state = '' log_entry = '' my_city = ' Houston' my_state = ' Texas' log_entry = current_time + my_city + my_state print(log_entry) Please Help
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started