The problem I am working on says that the input is made up with a number of the test cases, and the word number, and the words x number of test cases.
2 3 Potato Spud Baked 2 Fried Chicken
How would you split it between test cases?
I can't just use whitespace or a specific number, so is there like a regular expression or something similar?
msg = [string(msg) for msg in input().split()] ] for i in msg: count = str.count('c') + str.count('o') + str.count('d')
I should be able to see the number of times the letters c o d appear.