Status Code

ABC 401

Problem 15 of 50

Easy

What to do

You will receive a number between 100 and 999. If this number is between 200 and 299, you should print 'Success'. If it is not, you should print 'Failure'.

Key Concepts

if-statements basic input/output number comparison

Examples

Input: 200

Output: Success

Input: 401

Output: Failure

Tips for Beginners

  • Focus on understanding the logic, not memorizing syntax
  • Use print statements to debug your code
  • Don't worry about input parsing - the function handles that for you
  • If stuck, try writing out your solution on paper first

Python Editor

Loading Python...