Basic RoboDog speak
Input
create_robo("Rex", "RX1", 20).speak()
Output
Beep! Woof! I'm Rex
RoboDog combines a robotic beep with a bark and uses the Animal name.
Full lesson preview
Practice multiple inheritance by combining Animal and Machine behaviors into a RoboDog class.
Problem statement
Task
Examples
Input
create_robo("Rex", "RX1", 20).speak()
Output
Beep! Woof! I'm Rex
RoboDog combines a robotic beep with a bark and uses the Animal name.
Input format
Output format
Constraints
Samples
Input
r = create_robo("Bolt", "B2", 5); r.get_battery()
Output
5
The helper returns a RoboDog with battery 5.