LearnPy Hub
← Strings problems
Hard

Anagrams

Read two words and print Yes if they are anagrams of each other (same letters, any order, ignoring case), otherwise No.

Input

Two words.

Output

Yes or No.

Sample 1

Input
listen
silent
Output
Yes

Sample 2

Input
Dusty
Study
Output
Yes
solution.py
Output appears here
Anagrams · Python practice problem · LearnPy Hub