Write a function that takes a list as an argument and
interchange first half with the second half.
Answers
Answered by
4
Answer:
this python tutorial, we would like to share with you the following:
Write a python program to create two lists with first half and second half elements of a given list.
Python program to create two lists with first half and second half elements of a given list using range slicing.
1: Write a python program to create two lists with first half and second half elements of a given list
Define a list.
Take input how many element in list from user.
Iterate for loop and use input() function to allow user to input element.
Append elements in list by using append() method.
Similar questions
Math,
10 days ago
Social Sciences,
10 days ago
Hindi,
20 days ago
Computer Science,
20 days ago
Science,
8 months ago
Math,
8 months ago