Ejercicios
#EJERCICIO1
import time
time.sleep(10)
#EJERCICIO2
import math
math.floor(1.001)
#EJERCICIO3
import math
math.factorial(4)
#EJERCICIO4
import math
math.ceil(1.001)
#EJERCICIO5
import math
math.sin(5)
#EJERCICIO6
import math
math.sin(math.pi/4)
#EJERCICIO7
import math
math.cos(10)
#EJERCICIO8
import math
math.tan(10)
#EJERCICIO9
import math
math.hypot(12,5)
#EJERCICIO10
import math
math.sinh(math.pi)
#EJERCICIO11
import math
math.log(148.4755)
#EJERCICIO12
import math
math.sqrt(144)
#EJERCICIO13
from Tkinter
import*
ventana=Tk();
ventana.title("Mui aplicación"); ventana.mainloop()
#EJERCICIO14
import wx
ventana = wx.App();
frame = wx.Frame(None,title="Hello world"); frame.Centre();
frame.Show(); ventana.MainLoop();
#EJERCICIO15
from Tkinter
import*
raíz=Tk();
raiz.title("Mi segunda aplicación");
nombreLabel1=Label(raiz,text="Nombre:");
nombreLabel1.grid(row=0,column=0); cuadronombre=Entry(raiz);
cuadronombre.grid(row=0,column=1); raiz=mainloop();
Comentarios
Publicar un comentario