25 lines
347 B
Python
25 lines
347 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
|
|
"""
|
|
|
|
|
|
class Calculadora:
|
|
|
|
def __init__(self, numero):
|
|
self.numero = numero
|
|
|
|
def suma(self, otro_numero):
|
|
return self.numero + otro_numero
|
|
|
|
|
|
def doble_suma(self, num1, num2):
|
|
print(self.suma(num1) + self.suma(num2))
|
|
|
|
|
|
calc = Calculadora(5)
|
|
|
|
print(calc.suma(8))
|
|
|
|
calc.doble_suma(5, 6)
|