2. Sort the following dictionary based on the keys so that they are sorted a to z. Assign the resulting value to the variable sorted_keys.Write the code
dictionary = {"Flowers": 10, 'Trees': 20, 'Chairs': 6, "Firepit": 1, 'Grill': 2, 'Lights': 14} [PYTHON]
Answers
Answer:
such as the frequencies of letters or words in a text. For example, the following code counts the frequencies of different numbers in the list.
Explanation:
see answer
Some amazing facts!!! (Just for fun)
1. IN 1889, THE QUEEN OF ITALY, MARGHERITA SAVOY, ORDERED THE FIRST PIZZA DELIVERY.
2. YOU CAN BUY EEL FLAVORED ICE CREAM IN JAPAN.
3. IT'S CONSIDERED RUDE TO WRITE IN RED INK IN PORTUGAL.
4. ALTHOUGH THE BOBCAT IS RARELY SEEN, IT IS THE MOST COMMON WILDCAT IN NORTH AMERICA.
5. A CAT'S TAIL CONTAINS NEARLY 10 PERCENT OF ALL THE BONES IN ITS BODY.
6. GECKO FEET HAVE MILLIONS OF TINY HAIRS THAT STICK TO SURFACES WITH A SPECIAL CHEMICAL BOND AND LET THEM CLIMB WALLS AND HANG ON BY JUST ONE TOE.
7. THE TERM "ASTRONAUT" COMES FROM GREEK WORDS THAT MEAN "STAR" AND "SAILOR."
8. THE CALCIUM IN OUR BONES AND THE IRON IN OUR BLOOD COME FROM ANCIENT EXPLOSIONS OF GIANT STARS.
9. THE NILE CROCODILE CAN HOLD ITS BREATH UNDERWATER FOR UP TO TWO HOURS WHILE WAITING FOR PREY.
10. JELLYFISH, OR JELLIES AS SCIENTISTS CALL THEM, ARE NOT FISH. THEY HAVE NO BRAIN, NO HEART, AND NO BONES.
11. THE CHINESE GIANT SALAMANDER CAN GROW TO BE 6 FEET (1.8 M) LONG, MAKING IT THE LARGEST SALAMANDER IN THE WORLD.
12. PEOPLE REPORTEDLY PREFER BLUE TOOTHBRUSHES OVER RED ONES.
Hope you enjoyed!!!
Follow karo naa!!!