mercredi 13 novembre 2019

How can I replace random 5 instances of a character in a string with another character in Python?

Let's say I have a string "GGTACGGATG" and I need to replace 5 randomly chosen characters with the letter 'M'. I'm not sure how to properly code this.




Aucun commentaire:

Enregistrer un commentaire