Skip to content
C

Signup Input Validation

Easypython

Write validate_signup(username, age) that raises a ValueError with a clear message if the username is empty or over 50 characters, or if age is not a non-negative integer under 150.

Input: Two lines: a username, and an age (as an integer).

Output: One line: "Valid signup" if both pass validation, otherwise "Error: <message>".

Input (stdin)

Output

Run your code to see output here...