Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
PyNameMangling
#Python 2.7.17 #PyNameMangling #this code is created by Rezaul Hoque on January 04,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 Product: def __init__(self,price,qty): self.__price = price self.__qty = qty def cost(self): return self.__price*self.__qty a = Product(10,2) print(a._Product__price) print(a._Product__qty) print(a.cost())
run
|
edit
|
history
|
help
0
runologist
NormalizeTags
fb_series
Pattern
Counter() in collections
Problem: on_off
BatterScore
Aisha Wall
Epic
1.problem_name_1