Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #-*- coding:utf-8 -*-
- class tienda():
- def __init__(self):
- self.productos = int(raw_input('cantidad de stock de compra?: '))
- def entrada(self,stock):
- self.productos += stock
- def salida(self,stock):
- self.productos -= stock
- def contador(self):
- return self.productos
- producto = tienda()
- print producto.contador()
- producto.salida(int(raw_input('CANTIDAD DE PRODUCTOS VENDIDOS?: ')))
- print 'TE QUEDAN', producto.contador()
Add Comment
Please, Sign In to add comment