Module 2 - Colab
Module 2 - Colab
Write a Python program to get a list of colours and display the first and last colour from the list.
Write a Python program to create a list of squares for the numbers from 0 to 9 using list comprehension
Write a Python script to print a dictionary where the keys are the numbers between 10 and 15 (both included) and the values are the square of
the keys.
https://colab.research.google.com/drive/1_-OZu7iQAbGIAnCmDAi7rnt50gYsXdGr#scrollTo=yUuiApGRS--W&printMode=true 1/3
1/22/25, 2:46 PM module 2 - Colab
Dictionary of squares: {10: 100, 11: 121, 12: 144, 13: 169, 14: 196, 15: 225}
Write a Python program to find the frequency of each character in a given string and store the count in a dictionary with key as the character.
Create a dictionary of names and birthdays. Write a Python program that asks the user enters a name, and the program displays the birthday of
that person.
Write a Python program to find maximum, minimum and sum of n numbers in a tuple.
https://colab.research.google.com/drive/1_-OZu7iQAbGIAnCmDAi7rnt50gYsXdGr#scrollTo=yUuiApGRS--W&printMode=true 2/3
1/22/25, 2:46 PM module 2 - Colab
https://colab.research.google.com/drive/1_-OZu7iQAbGIAnCmDAi7rnt50gYsXdGr#scrollTo=yUuiApGRS--W&printMode=true 3/3