Skip to content

Instantly share code, notes, and snippets.

@tCraxker
tCraxker / Examen.py
Last active February 14, 2024 23:23
Examen_Compiladores
# Leonardo Garcìa Lòpez - 6ª "N" - Examen_Compiladores
import ply.lex as lex
import tkinter as tk
from tkinter import ttk
# Definición de tokens y palabras reservadas
tokens = (
'RESERVADO',
'IDENTIFICADOR',
@tCraxker
tCraxker / Reto #5.py
Created February 10, 2024 01:08
Reto del día Viernes
def new_user(user_data):
records = int(input('\n¿Cuántos usuarios desea registrar? '))
for i in range(records):
print(f"\nRegistro número {i + 1}")
while True:
user_name = input('\nIngrese su nombre: ')
if 4 <= len(user_name) < 49:
break
@tCraxker
tCraxker / Reto #4.py
Created February 9, 2024 03:42
Reto del día jueves
while True:
print('\nMenú')
print('\nA) Nuevo Usuario')
print('B) Historial de Usuarios')
print('C) Información de Usuario')
print('D) Editar Usuario')
print('E) End')
opcions = input('\nDigite la opción a realizar: ')
@tCraxker
tCraxker / Reto #3.py
Created February 8, 2024 04:32
Reto del día miercoles
records = int(input('¿Cuantos usuarios desea registrar? '))
user_counter = 1
user_ids = []
for i in range(records):
print(f"\nRegistro número {i + 1}")
while True:
user_name = input('Ingrese su nombre: ')
if 4 <= len(user_name) < 49:
@tCraxker
tCraxker / Reto #2.py
Created February 7, 2024 05:11
Reto del día martes
records = int(input ( '¿Cuantos usuarios desea registrar?') )
for i in range(records):
print(f"\nRegistro número {i + 1}")
while True :
user_name = input( ( 'Ingrese su nombre: ') )
if len(user_name) >= 4 and len(user_name) < 49:
@tCraxker
tCraxker / Reto #1.py
Created February 6, 2024 00:11
Reto del día Lunes
print('Hola, a continuación puede registrarse. ')
first_name = input('Ingrese su nombre: ')
last_name = input('Ingrese su apellido: ')
age = int( input('Ingrese su edad: ') )
phone_number = int( input('Ingrese su número de telefóno: ') )
E_mail = input('Ingrese su correo electrónico: ')
print('Hola ' + first_name + ' ' + 'en breve recibiras un correo a ' + E_mail)