var1 = 'apple' print(var1) print('count how many times letter p repeats in apple') print(var1.count('p',0,len(var1)))
warp output