3. Concatenation

3.1. A string cannot be modified

Activity: 3.1.1 ActiveCode (ac_l18_3a_en)

3.2. I can create new strings

  • Using concatenation solves this problem

Activity: 3.2.1 ActiveCode (ac_l18_3b_en)

  • Example of a program that reads a word and replaces the vowels with "*". The lower function transforms the letters to lowercase.

Activity: 3.2.2 ActiveCode (ac_l18_3c_en)

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.

Activity: 3.3.1 ActiveCode (ac_l18_3d_en)

You have attempted 1 of 5 activities on this page