Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
tes umur
Fold an array
codeacademy python tasks
thnii957
Aufgabe 15
Cofe
Simple code to find all divisors for a number
axsd
сщые
Gani
Please log in to post a comment.