Rearranging ABC

ABC 377

Problem 39 of 50

Easy

What to do

You are given a 3-letter string made of uppercase letters. Your task is to check if you can rearrange these letters to form the word 'ABC'.

Key Concepts

if-statements string manipulation comparison

Examples

Input: 'BAC'

Output: Yes

Input: 'AAC'

Output: No

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...