LIMITED TIME OFFER: 50% OFF OF PREMIUM WITH OUR ANNUAL PLAN (THAT'S $294 IN SAVINGS).
GET OFFER

I need a help slicing a dictionary

dictionary = {‘Photo Editor & Candy Camera & Grid & ScrapBook’: 159.0, ‘Coloring book moana’: 974.0, ‘U Launcher Lite – FREE Live Cool Themes, Hide Apps’: 87510.0, ‘Sketch - Draw & Paint’: 215644.0, ‘Pixel Draw - Number Art Coloring Book’: 967.0, ‘Paper flowers instructions’: 167.0, ‘Smoke Effect Photo Maker - Smoke Editor’: 178.0, ‘Infinite Painter’: 36815.0, ‘Garden Coloring Book’: 13791.0, ‘Kids Paint Free - Drawing Fun’: 121.0, ‘Text on Photo - Fonteee’: 13880.0, ‘Name Art Photo Editor - Focus n Filters’: 8788.0, ‘Tattoo Name On My Photo Editor’: 44829.0, ‘Mandala Coloring Book’: 4326.0}

i want to slice the first 5 ! how to write the code. ?

What have you tried so far? Can you share some code? Without giving an answer, I was able to create a new dictionary that contained the first 5 by using the list operation.