TORONTO KIDS COMPUTER CLUB | Blog
1815
paged,page-template,page-template-blog-large-image,page-template-blog-large-image-php,page,page-id-1815,paged-291,page-paged-291,ajax_fade,page_not_loaded,,no_animation_on_touch,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Blog

27 Nov PMCA Sunday 16:00 Python Homework 11.24

Question: Using function or object method to write a program to return the number of times that the string “code” appears anywhere in the given string, except we’ll accept any letter for the ‘d’, so “cope” and “cooe” count. For example: ‘aaacodebbb’ will have 1 “code” ‘codexxcode’ will have 2 “code” ‘cozexxcope’...

Read More