Computer Science, asked by haritha13400, 9 months ago

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 shivanshrobotics
0

Answer:

func=lambda x:x[2:4]+x[0:2]+x[4:]

Explanation:

Using string manipulation

Similar questions