Little update

This commit is contained in:
Dennis Eckerskorn 2024-10-24 19:27:44 +02:00
parent 980019c8b9
commit ec027665a9
5 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,9 @@
def escribir_en_fichero(variable):
with open('resources/salida.txt', 'w') as archivo:
archivo.write(f"El valor de la variable es: {variable}\n")
print("El valor ha sido escrito en el fichero 'salida.txt'.")
mi_variable = 42
escribir_en_fichero(mi_variable)

View File

@ -0,0 +1,11 @@
<html lang="es">
<head>
<meta charset="UTF-8">
<title>Página 1</title>
</head>
<BODY>
<a href="2.html">Ir a página 2</a>
<br>
<a href="index.html">Volver</a>
</BODY>
</html>

View File

@ -0,0 +1,11 @@
<html lang="es">
<head>
<meta charset="UTF-8">
<title>Página 2</title>
</head>
<BODY>
<a href="1.html">Ir a página 1</a>
<br>
<a href="index.html">Volver</a>
</BODY>
</html>

View File

@ -0,0 +1,9 @@
<html lang="es">
<head>
<meta charset="UTF-8">
<title>Inicio</title>
</head>
<BODY>
<a href="1.html">Ir a página 1</a>
</BODY>
</html>

1
resources/salida.txt Normal file
View File

@ -0,0 +1 @@
El valor de la variable es: 42