Lista del 1 al 10
a=1
while a <= 10:
print(a)
a=a+1
Lista de múltiplos de x número:
Ascendente:
a=11
while a <= 20
print (ax)
a=a+1
Descendente:
a=20
while a>=11
print(ax)
a=a-1
Hola mundo y sumar:
print("Hola mundo")
print("¡Sumemos!")
n1 = float (input("¿Cuál número quieres sumar?"))
n2 = float (input("¿Con qué número?"))
suma= (n1+n2)
print ("Resultado es:" ,suma)
Calcular edad:
n1 = float (input("¿Cuál es tu edad?"))
n2 = float (input("Ingresa año actual: "))
resta= (n2-n1)
print ("El año en el que naciste es:" ,resta)
Color de fuente
<html>
<html lang="es">
<head>
<title>Holi</title>
</head>
<body>
<p style="color:#FFB118";>Color</p>
</body>
</html>
Negrita:
<html>
<head>
<title>Menu</title>
</head>
<body>
<a href="[Link]">ir a america</a><br>
<a href="[Link]"#norte>Me voy a noramerica</a><br>
<a href="[Link]"#centro>De viaje a centroamerica</a><br>
<a href="[Link]"#sur>Me fui a suramerica</a><br>
</body>
</Html>
Documento
<!DOCTYPE html>
<html lang="es">
<head>
<title>Poto</title>
</head>
<body>