Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q5. A) A year is a leap year if it is divisible by 4, except that years divisible by 100 are not leap years unless

image text in transcribed
Q5. A) A year is a leap year if it is divisible by 4, except that years divisible by 100 are not leap years unless they are also divisible by 400. Write a function that take year as a parameter and returns whether it is a leap year or not B) Write a Python script to check whether a given key already exists in a dictionary C) Write a Python script to generate and print a dictionary that contains a number (between 1 and n) in the form (x, x*x) D) Access the value of key, 'history' sampleDictionary = { "class":{ "student": { "name":"Eunice" "Marks: { "physics": 70, "history":80 } 6

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Define the term Working Capital Gap.

Answered: 1 week ago