Write a function that swaps the first pair (1st and 2nd characters) with the second pair (3rd and 4th characters) for every quadruplet substring.
Answers
Answered by
0
Answer:
func=lambda x:x[2:4]+x[0:2]+x[4:]
Explanation:
Using string manipulation
Similar questions
Math,
4 months ago
Math,
4 months ago
Geography,
9 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago