Question: CHALLENGE ACTIVITY 3 . 4 . 1 : Set basics. 5 4 7 1 4 8 3 1 5 4 6 4 2 0 3
CHALLENGE
ACTIVITY
: Set basics.
Create variable uniqueanimals as an empty set so that four strings can be read from input and added to uniqueanimals.
Click here for example
Note: Because sets are unordered, the set is printed using the sorted function here for comparison.
I Your code goes here
animall input
animal input
anima input
anima input
uniqueanimals.addanimal
uniqueanimals.addanimal
uniqueanimals.addanimal
uniqueanimals.addanimal
printsorteduniqueanimals
Feedback?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
