You have to program several functions. In each case, few lines of code are enough.
Write a function @vowel_consonant(s)@ that given an string returns the number of vowels and consonants that appear as characters in . We assume all characters of are letters.
Write a function @delete_digits(s)@ that returns the string obtained after ruling out the digit characters of .
Write a function @switch(s)@ that given an string returns the string obtained after switching lowercase to uppercase letters and the other way around. Non letter characters do not change. Warning: do not use the @swapcase@ string method.
Write a function @countdown(n)@ that given an integer greater than zero prints the count down until .
Write a function @powers_of_2(n)@ that given a natural prints the first powers of 2.
Every function counts 20 points.
Author: Jorge Castro
Generation: 2026-01-25T19:39:58.555Z
© Jutge.org, 2006–2026.
https://jutge.org