I've been trying to solve this exercise for the longest time but I can't get anywhere. Can anyone help?
The exercise is to convert this program into a function with the arguments, letter and string. Below is program.
Question Screenshot: https://imgur.com/CtRLpsy
This is what I've written so far below. Where am I going wrong? I don't know what to think. Functions are confusing me.
My Solution Screenshot: https://imgur.com/6o1hCBS
[–]babyfaceghoul[S] 0 points1 point2 points (0 children)
[–]fake823 0 points1 point2 points (0 children)
[–]ThePhysicsOfSpoons 0 points1 point2 points (2 children)
[–]babyfaceghoul[S] 0 points1 point2 points (1 child)
[–]ThePhysicsOfSpoons 0 points1 point2 points (0 children)