Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions 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
Check Mark
Knowledge Booster
Background pattern image
Computer Science
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
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education