Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
PySlots2
#python 3.6.9 #PySlots2 #this code is created by Rezaul Hoque on January 08,2022;contact: jewelmrh@yahoo.com,Dhaka, Bangladesh #note: codes shared by Rezaul Hoque on rextester are not for sale; they are created and shared to facilitate the algorithm learning process; many like Hoque use this platform to practice programming ;Rezaul hopes his contribution helps others to fine tune their learning; class Food: __slots__ = ('food','color', 'price') def __init__(self, food,color,price): self.food = food self.color = color self.price = price def __repr__(self): return f'Food({self.food},{self.color},{self.price})' class CookedFood(Food): def __init__(self,food,color,price,taste): super().__init__(food,color,price) self.taste = taste if __name__ == '__main__': ic= CookedFood('Icecream','white',10,'good') print(ic.__dict__)
run
|
edit
|
history
|
help
0
Python3
Counting
My wall
fibonacci sequence generator and golden ratio
Mengira luas dan perimeter segi tiga
ACII_Art
Pytest
My world
Python.py
количество 1 и 0 в последовательности чисел до n