You are not logged in. Please login at to post your questions!


[closed] swapping two characters in python string ?

what is the easiest way to swap two characters in a python string ?

asked 12 Oct '17, 18:26

hmtupd123's gravatar image

accept rate: 0%

closed 12 Oct '17, 19:12

vijju123's gravatar image

5★vijju123 ♦

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

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

vijju123's gravatar image

5★vijju123 ♦
accept rate: 19%

edited 12 Oct '17, 19:13

Hahahahhaa THug life

(12 Oct '17, 20:26) kunnu1201★

Not all superheroes wear capes *wink* ;-)

(12 Oct '17, 23:44) vijju123 ♦5★

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • 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:


question asked: 12 Oct '17, 18:26

question was seen: 3,213 times

last updated: 12 Oct '17, 23:44