Question: Integer m and string plus _ one _ course are read from input. Then, five strings are read from input and stored in the list

Integer m and string plus_one_course are read from input. Then, five strings are read from input and stored in the list course_list.
Delete the first element in course_list, and then replace the element at index m with plus_one_course.
Click here for example
Ex: If the input is:
2
Biology
Dance Architecture Agriculture Databases Chemistry
then the output is:
My favorite courses: ['Architecture', 'Agriculture', 'Biology', 'Chemistry']
m= int(input())
plus_one_course = input ()
course_list = input ().split()
''' Your code goes here '''
print(f'My favorite courses: {course_list}') python please
 Integer m and string plus_one_course are read from input. Then, five

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 Databases Questions!