TORONTO KIDS COMPUTER CLUB | Uncategorized
1
archive,category,category-uncategorized,category-1,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.8.0,vc_responsive

Uncategorized

05 Jun Monday 17:00 Python Practice – 22.05.30.

Question: Create a Rocketclass with two attributes: nameand destination. SpaceRocketclass is the inherited class from the base class Rocket. Besides the two attributes the base class has, SpaceRocketclass has an attribute maker. The Rocketclass has a method called launch(), it returns a string like “Falcon 9(which is name) is launched to low Earth orbit(which is destination)” The SpaceRocketclass...

Read More

21 May Monday 17:00 Python Practice – 22.05.16.

Question: Create a Python class Person with attributes: name and age of type string. Create a display() method that displays the name and age of an object created via the Person class. Create a child class Student which inherits from the Person class and which also has a section attribute. Create a method displayStudent() that...

Read More