Question: 1. Modify the program below so it takes the input from the user. #Activity 4.1 # This program calls the split method, using the

1. Modify the program below so it takes the input from the 

1. Modify the program below so it takes the input from the user. #Activity 4.1 # This program calls the split method, using the # '/' character as a separator. def main(): # Create a string with a date. date_string ='11/26/2012' # Split the date. date_list = date_string.split('/') # Display each piece of the date. print('Month:', date list[0]) print('Day:', date list [1]) print('Year:', date_list[2]) # Call the main function. main()

Step by Step Solution

3.39 Rating (158 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

This appears to be a Google search results page in Arabic with the search query 80 and the results s... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!