Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Marketing Database Analytics

Authors: Andrew D. Banasiewicz

1st Edition

0415657881, 978-0415657884

More Books

Students also viewed these Databases questions