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
Python regex to find repetitive word count
PyDeco
Hi
0aa6d60d0504c8470fc90c1d5cbf06083cdaadeab6e102bf90732ac2ab66dfdc
wordscapes
Convert between degrees and radians
Shabnam_ticket
NewFoodTipper
ElaineBrown**
GayChicken