7.3k views
1 vote
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

User Dymanoid
by
5.2k points

2 Answers

2 votes

Answer:

my_city = input('')

my_state = input('')

log_entry = current_time + ' ' + my_city + ' ' + my_state

Step-by-step explanation:

+ ' ' + means just a space. hope this helps.

User DocKimbel
by
5.4k points
1 vote

current_time = '2014-07-26 02:12:18:'

my_city = ' '

my_state = ' '

log_entry = ' '

'''Your solution goes here'''

my_city = input(' ')

my_state = input(' ')

log_entry = current_time + ' ' + my_city + ' ' + my_state

print(log_entry)

User Victor Sigler
by
5.0k points