example your computer screen is grid of pixels to draw images to the screenwe often use nested for loops--one loop for the horizontal directionand one for the vertical direction see sections and for examples example list comprehensions can contain nested for loops the example below returns list of all the vowels in list of words [char for item in for char in item if char in 'aeiou ' exercises write program that uses list and range to create the list [ , write program that asks the user for weight in kilograms the program should convert the weight to kilogramsformatting the result to one decimal place write program that asks the user to enter word rearrange all the letters of the word in alphabetical order and print out the resulting word for exampleabracadabra should become aaaaabbcdrr write program that takes list of ten prices and ten productsapplies an discount to each of the prices displays the output like belowright-justified and nicely formatted apples oranges pears $ use the following two lists and the format method to create list of card names in the format card value of suit name (for example'two of clubs'suits 'hearts ''diamonds ''clubs ''spades 'values 'one ''two ''three ''four ''five ''six ''seven ''eight ''nine ''ten ''jack ''queen ''king ''ace ' write program that uses boolean flag variable in determining whether two lists have any items in common write program that creates the list [ , , , , ]where the entries have an ever increasing number of oneswith the last entry having ones write program to find all numbers between and that are divisible by and end in write program to determine how many of the numbers between and contain the digit