-
-
Save parzibyte/f185b82fa02905230c66d55825c17d1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cadena_original = "Hola mundo. Me gusta programar en JavaScript porque JavaScript es un buen lenguaje" | |
# Si especificamos el count, va a reemplazar solo esa cantidad de veces | |
cadena_reemplazada_una_vez = cadena_original.replace("JavaScript", "Python", 1) | |
print(cadena_reemplazada_una_vez) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment