Skip to content

A simple Python script to check age for club entry, featuring input validation and basic conditional logic.

Notifications You must be signed in to change notification settings

luisbotteri/python-login-control

Repository files navigation

🕺 Club Entrance Checker (Verificador de Entrada al Club) 🌃

Welcome to the Club Entrance Checker! This simple Python script simulates the basic process of checking a person's age before allowing them into a nightclub. It's a fun and easy way to demonstrate input handling, basic conditional logic, and error management in Python.

✨ Features

  • Age Verification: Checks if the user is 18 or older.
  • Friendly Interaction: Greets the user and asks for their name and age.
  • Input Handling: Uses a try-except block to manage potential ValueError if the age is not entered as a number.
  • Looping: Keeps asking for input until a certain condition is met (or the user decides to stop based on the logic).

🚀 How to Run

  1. Save the code: Save the provided Python code as a file (e.g., club_checker.py).

  2. Run it: Execute the script from your terminal:

    python club_checker.py
  3. Enjoy: Follow the prompts to see if you can enter the club! 🎉


🇪🇸 Verificador de Entrada al Club (Club Entrance Checker) 🌃

¡Bienvenido/a al Verificador de Entrada al Club! Este sencillo script de Python simula el proceso básico de verificación de la edad de una persona antes de permitirle el acceso a una discoteca. Es una forma divertida y fácil de demostrar el manejo de entradas, la lógica condicional básica y la gestión de errores en Python.

✨ Características

  • Verificación de Edad: Comprueba si el usuario tiene 18 años o más.
  • Interacción Amigable: Saluda al usuario y le pide su nombre y edad.
  • Manejo de Entrada: Utiliza un bloque try-except para gestionar posibles ValueError si la edad no se introduce como un número.
  • Bucle: Continúa pidiendo entradas hasta que se cumple una condición determinada (o el usuario decide detenerse según la lógica).

🚀 Cómo Ejecutar

  1. Guarda el código: Guarda el código Python proporcionado en un archivo (por ejemplo, verificador_club.py).

  2. Ejecútalo: Ejecuta el script desde tu terminal:

    python verificador_club.py
  3. Disfruta: ¡Sigue las indicaciones para ver si puedes entrar al club! 🎉

About

A simple Python script to check age for club entry, featuring input validation and basic conditional logic.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages