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
3.4.1: Set basics.
5471483154642032477
Create variable unique_animals as an empty set so that four strings can be read from input and added to unique_animals.
Click here for example
Note: Because sets are unordered, the set is printed using the sorted() function here for comparison.
1
I'. Your code goes here
animall = input ()
animal2= input ()
anima13= input ()
anima14= input()
unique_animals.add(animal1)
unique_animals.add(animal2)
unique_animals.add(animal3)
unique_animals.add(animal4)
print(sorted(unique_animals))
2
3
4
Feedback?
 CHALLENGE ACTIVITY 3.4.1: Set basics. 5471483154642032477 Create variable unique_animals as an

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!