Run Code
|
API
|
Code Wall
|
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
947
f strings 3
check the browser existence one by one
shuru6
DISPLAY
Evaluacion 2 -ICA
Komalsri123
StringManipulation
Page 353 ex 42
Q1