×

# [closed] swapping two characters in python string ?

 0 what is the easiest way to swap two characters in a python string ? asked 12 Oct '17, 18:26 37●1●5 accept rate: 0% 13.9k●1●12●40

### The question has been closed for the following reason "Duplicate." by vijju123 12 Oct '17, 19:12

 2 There is a website where you can get not 1, not 2 but hundreds of methods to swap 2 characters in python, that too very easily! Further, whats better, by little exploring you will see it can help you with practice problems, implementations of toughest algorithm and data structures arising from the same concept. The website doesnt seem to be known by many people, but its really helpful. Here, explore it , be careful not to get lost though! :) answered 12 Oct '17, 19:11 13.9k●1●12●40 accept rate: 19% Hahahahhaa THug life (12 Oct '17, 20:26) kunnu1201★ 1 Not all superheroes wear capes *wink* ;-) (12 Oct '17, 23:44)
 0 answered 12 Oct '17, 18:35 1★spp____ 1.1k●2●10 accept rate: 8%

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×445
×349

question asked: 12 Oct '17, 18:26

question was seen: 3,213 times

last updated: 12 Oct '17, 23:44