3. Concatenation¶
3.1. A string cannot be modified¶
3.2. I can create new strings¶
Using concatenation solves this problem
Example of a program that reads a word and replaces the vowels with
"*"
. Thelower
function transforms the letters to lowercase.
3.3. Exercise¶
# Now create a program that reads a word, saves it in the variable “palabra”, # and replaces the consonants with “*”. Save the result in the variable “intercambio”. # You can use the previous program as a reference.
You have attempted of activities on this page