Write a small program in Python to print your CV. 2. Write a program that takes the month (1…12) as input. Print whether the season is summer,
After gaining relevant information about Python, start writing programs in Python, assuming
that you all have written the basic hello world
how Python works.
Perform the programs given below take screen shot of your programs and its output paste it in
word file and upload it in due time. Save your word file by you name followed by lab task
number e.g abc lab task 1. Do add references in case of any online resources you have used.
In the next lab class, I will take a short viva from this lab and I can ask anyone to run their
programs.
1. Write a small program in Python to print your CV.
2. Write a program that takes the month (1…12) as input. Print whether the season is
summer, winter, spring or autumn depending upon the input month.
3. To determine whether a year is a leap year, follow these steps:
i. If the year is evenly divisible by 4, go to step 2. Otherwise, go to step 5.
ii. If the year is evenly divisible by 100, go to step 3. Otherwise, go to step 4.
iii. If the year is evenly divisible by 400, go to step 4. Otherwise, go to step 5.
iv. The year is a leap year (it has 366 days).
v. The year is not a leap year (it has 365 days).
Write a program to input a year as integer. Using if…else, determines whether
the input is a leap year or not.
4. Write a program that takes a line as input and finds the number of letters and digits in the
input
5. Write a program that takes a sentence as input. Compute the frequency of each words and
prints them.

Step by step
Solved in 2 steps with 1 images









