TORONTO KIDS COMPUTER CLUB | PMCA Sunday 14:00 Python Homework 21.03.07.
19155
post-template-default,single,single-post,postid-19155,single-format-standard,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

PMCA Sunday 14:00 Python Homework 21.03.07.

12 Mar PMCA Sunday 14:00 Python Homework 21.03.07.

Question 1:
Write code to find the number of times a certain character appears in the string. Below is the sample execution of the code.

E.g. inside the string apple, the character p appears 2 times.


Question 2:
Create a Dog class just like we designed the pencil and the Ipad class. Create at least 3 attributes and 3 methods for the Dog class. Also, please create an object out of the Dog class and print all the attributes and call all the method

No Comments

Sorry, the comment form is closed at this time.