Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
PySlots
#python 3.6.9 #PySlots #this code is created by Rezaul Hoque on January 06,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','taste', 'price') def __init__(self, food,color,taste,price): self.food = food self.color = color self.taste = taste self.price = price def __repr__(self): return f'Food({self.food},{self.color},{self.taste},{self.price})' ic = Food('Icecream','white','good',10) print(ic.__slots__)
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
cls_var und cls_method
we
IP Networks splitting calculator
Va
Play
Vowel
PyTeleBook
binary_search_in_python
Generating subsets
pyCustomEnum
Please log in to post a comment.