lease do the code as soon as possible in python 3 Implement the design of the DemonSlayer class so that the following output is produced: # Write your code here print('No of demon slayers:', DemonSlayer.count) print("=========================") d1 = DemonSlayer("Tanjiro", 15, "Water Breathing", 100) d1.addKill(20) d1.printDetails() print("=========================") d2 = DemonSlayer("Rengoku", 20, "Flame Breathing", 1000) d2.dismissKill(50) d2.printDetails() print("=========================") d3 = DemonSlayer("Zenitsu", 16, "Thunder Breathing", 80) d3.dismissKill(100) d3.printDetails() print("=========================") print('No of demon slayers:', DemonSlayer.count) Output: No of demon slayers: 0 ========================= Name: Tanjiro Age: 15 Style: Water Breathing Total Kill: 120 ========================= Name: Rengoku Age: 20 Style: Flame Breathing Total Kill: 950 ========================= Name: Zenitsu Age: 16 Style: Thunder Breathing Total Kill: 80 ========================= No of demon slayers: 3
Please do the code as soon as possible in python 3
Implement the design of the DemonSlayer class so that the following output
is produced:
# Write your code here
print('No of demon slayers:', DemonSlayer.count)
print("=========================")
d1 = DemonSlayer("Tanjiro", 15, "Water Breathing", 100)
d1.addKill(20)
d1.printDetails()
print("=========================")
d2 = DemonSlayer("Rengoku", 20, "Flame Breathing", 1000)
d2.dismissKill(50)
d2.printDetails()
print("=========================")
d3 = DemonSlayer("Zenitsu", 16, "Thunder Breathing", 80)
d3.dismissKill(100)
d3.printDetails()
print("=========================")
print('No of demon slayers:', DemonSlayer.count)
Output:
No of demon slayers: 0
=========================
Name: Tanjiro
Age: 15
Style: Water Breathing
Total Kill: 120
=========================
Name: Rengoku
Age: 20
Style: Flame Breathing
Total Kill: 950
=========================
Name: Zenitsu
Age: 16
Style: Thunder Breathing
Total Kill: 80
=========================
No of demon slayers: 3
Step by step
Solved in 3 steps with 1 images