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 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
This appears to be a Google search results page in Arabic with the search query 80 and the results s... View full answer
Get step-by-step solutions from verified subject matter experts
