This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in range(0,1): | |
print("Ingrese el valor de arancel") | |
arancel=input() | |
if arancel>=0: | |
print("El nuevo valor es:") | |
arancel-(arancel/20) | |
else: | |
print("El valor ingresado no es válido. Intente con un número entero positivo") | |
for i in range(0,1): | |
print("INTENTO #2 y final: Ingrese el valor de arancel.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Problema Diez | |
print(" ") | |
print(" ") | |
n=input("Ingrese termino n hasta donde desea sumar la serie: ") | |
m=0 | |
for p in range(n): | |
m=(1/(2*float(n)))+float(m) | |
n-=1 | |
print("Valor: ",m) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Boa:Frame:Frame1 | |
import wx | |
def create(parent): | |
return Frame1(parent) | |
[wxID_FRAME1, wxID_FRAME1CALCULAR, wxID_FRAME1COSTOSMS, | |
wxID_FRAME1COSTOSMSTXT, wxID_FRAME1DISPLAYCOSTOSMS, wxID_FRAME1LIMPIAR, | |
wxID_FRAME1SMS, wxID_FRAME1TERMINAR, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Boa:Frame:Ventana | |
import wx | |
def create(parent): | |
return Ventana(parent) | |
[wxID_VENTANA, wxID_VENTANABTCALCULAR, wxID_VENTANABTLIMPIAR, | |
wxID_VENTANABTSALIR, wxID_VENTANASTDISPLAY, wxID_VENTANASTVALORSMS, | |
wxID_VENTANATCTEXTOSMS, wxID_VENTANATCVALORSMS, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i= raw_input("Ingrese Nombre: ") | |
j= input("Ingrese edad: ") | |
print 'Edad de',i,' : ',j |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def Validar(a): | |
if a.isdigit(): | |
if int(a)>=int(10) and int(a)<=int(70): | |
return True | |
else: | |
return False | |
else: | |
return False | |
def main(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import codecs | |
import math | |
def limpiarPantalla(): | |
import os | |
if os.name == "nt": | |
os.system("cls") | |
elif os.name == "posix": | |
os.system("clear") | |
else: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import codecs | |
def Opcion(o): | |
if o.isdigit(): | |
if int(o)>=0 and int(o)<=2: | |
return True | |
else: | |
return False | |
else: | |
return False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef CABECERA_H_INCLUDED | |
#define CABECERA_H_INCLUDED | |
#include <iostream> | |
using namespace std; | |
void Llenar(int [], int ); /*En la cabecera no se necesitan los nombres de los parametros*/ | |
void Mostrar(int [], int); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import math | |
def Validar(a): | |
if a.isdigit(): | |
return True | |
else: | |
return False | |
def Ingresar(): | |
a=False |
OlderNewer