Ultimate Python De Cero A Programador Experto Descargar New -

def eliminar_producto(self, id): self.productos = [p for p in self.productos if p.id != id]

producto = Producto(len(inventario.productos) + 1, nombre, descripcion, precio, cantidad) inventario.agregar_producto(producto) ultimate python de cero a programador experto descargar new

from inventario import Inventario from producto import Producto def eliminar_producto(self, id): self

class Inventario: def __init__(self): self.productos = [] ultimate python de cero a programador experto descargar new

opcion = input("Ingrese una opcion: ")

if opcion == "1": nombre = input("Ingrese el nombre del producto: ") descripcion = input("Ingrese la descripcion del producto: ") precio = float(input("Ingrese el precio del producto: ")) cantidad = int(input("Ingrese la cantidad del producto: "))

Previous
Previous

Pretty Powerful Things

Next
Next

How To Be Self-Centered This Summer