Complete the code to match multiple cases in one line.
let fruit = "apple" switch fruit { case [1]: print("It's a citrus fruit.") default: print("It's another fruit.") }
Complete the switch statement to print "Weekend" for Saturday and Sunday.
let day = "Sunday" switch day { case [1]: print("Weekend") default: print("Weekday") }
Fix the error in the switch case to correctly match multiple values.
let number = 3 switch number { case [1]: print("Number is 1, 2, or 3") default: print("Other number") }
Fill both blanks to create a switch that prints "Vowel" for 'a', 'e', 'i', 'o', 'u' and "Consonant" for 'b', 'c', 'd'.
let letter: Character = "a" switch letter { case [1]: print("Vowel") case [2]: print("Consonant") default: print("Other letter") }
Fill all three blanks to create a switch that prints "Small", "Medium", or "Large" for sizes 1-2, 3-4, and 5-6 respectively.
let size = 4 switch size { case [1]: print("Small") case [2]: print("Medium") case [3]: print("Large") default: print("Unknown size") }
