Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
abstractmethod 2
#python 3.5.2 from abc import ABCMeta,abstractmethod class shape(metaclass=ABCMeta): @abstractmethod def printarea(self): return 0 class mani(shape): def __init__(self): self.length=15 self.breadth=3 def printarea(self): return self.length*self.breadth am=mani() print(am.printarea()) class sunny(mani): def __init__(self): self.no1=10 self.no2=20 def printarea(self): return self.no1+self.no2 s1=sunny() print(s1.printarea())
run
|
edit
|
history
|
help
0
(P2) Ciągi 2 - mapowanie
My webapp demo
Range List for Python
PyGuessTheNum
https://rextester.com/REAL13110
practice
Lesson3 part 2
Юра и заселение
Prime numbers
Leibnitz Series To Estimate Pi