Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
PySRP
#python 3.6.9 #pySRP #this code is created by Rezaul Hoque on January 17,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 GardenSav: def save(self, Garden): print(f'Save the {Garden} to the database') class Garden: def __init__(self, gard,type): self.gard = gard self.sv = GardenSav() self.type = type def __repr__(self): return f'Garden(gard={self.gard},type={self.type})' def save(self): self.sv.save(Garden=self) if __name__ == '__main__': p = Garden('Garden','Flower') p.save()
run
|
edit
|
history
|
help
0
substring
Pytest
💯💯💯💯💯💯💯👽Guess the number 👽💯💯💯💯💯💯💯
sum of odd numbers
PyNoneOr
Gift_Card Interview SQL Analysis Conducted by Miranda Zhao
mul table
V
Python.py
вправи в пайтон