I'm totally new to Python but i have to make an exercise for school, but i couldn't find out how to write this in python. I think it's really easy.

i have to make a function called 'countsymbol that counts a singlecharacter string as 1st paramater and a string as the 2nd parameter and returns how many times the 1st string is found in the 2nd string

Example of the answer:

- Code: Select all
`countsymbol(’@’, ’abc’)`

Result

- Code: Select all
`0`

- Code: Select all
`countsymbol(’a’, ’abc’)`

Result

- Code: Select all
`1`

- Code: Select all
`countsymbol(’b’, ’abc’)`

Result

- Code: Select all
`1`

Can somebody help please THANKS