Practice

Email Validation Check

2025/Oct/Nov·Variant 2
MEDIUMString Processing

Validate an email address by checking that it contains an @ symbol. Use the SUBSTRING function to inspect each character.

Input: A string representing the email address to check. Output: The original email address followed by " is valid" or " is NOT valid".

Example:

Input:  hello@world.com
Output: hello@world.com is valid
Premium is coming soon. All grading features are currently unlocked.

Sample Test Cases

Test 1: Valid email
Inputs: hello@world.com
Expected: hello@world.com is valid
Test 2: Missing @ symbol
Inputs: no_at_symbol.com
Expected: no_at_symbol.com is NOT valid
Press Ctrl+Enter to run your code
or Ctrl+Shift+Enter to grade