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,

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter7: File Handling And Applications
Section: Chapter Questions
Problem 20RQ
icon
Related questions
Question

After gaining relevant information about Python, start writing programs in Python, assuming
that you all have written the basic hello world program in python that give you basic idea of
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.

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT