Challenge: Separate the Names in a Set into Two Sets
Write a program to separate the names given in a set into two sets.
We'll cover the following
A set contains names that begin either with 'A'
or with 'B'
. Write a program to separate the names into two sets—one containing names beginning with 'A'
and the other containing names beginning with 'B'
:
- Input: A set that contains names that begin either with
'A'
or with'B'
. - Output: Two sets—one that containing names beginning with
'A'
and the other containing names beginning with'B'
.
Get hands-on with 1400+ tech skills courses.