Question: Integer k and string my_course are read from input. Then, five strings are read from input and stored in the list course_data. Delete the third

Integer k and string my_course are read from input. Then, five strings are read from input and stored in the list course_data. Delete the third element in course_data, and then replace the element at index k with my_course. k = int(input()) my_course = input() course_data = input().split() ''' Your code goes here ''' print(f'My favorite courses: {course_data}')

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!