Problem 45 of 50

Easy

lightbulb What to do

You have three brothers named A, B, and C. You know who is older or younger based on three symbols (< or >). Your task is to find out which brother is the second oldest.

Key Concepts
if-statements comparison operators conditional logic
Examples

Input: '< < <'

Output: B

Input: '< < >'

Output: C

code Python Editor
Loading Python...
Test Results
tips_and_updates 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