Python_and_Data_Analytics_NEC_Week2_Solved
1. Write a program named check_ that requests an integer from the user and prints whether the integer is positive or negative or zero. 2. A year with 366 days is called a leap year. Leap years are necessary to keep the calendar in sync with the sun, because the earth revolves around the sun once very 365.25 days. As a result, years that are divisible by 4, like 1996, are leap years. However, years that are divisible by 100, like 1900, are not leap years. But years that are divisible by 400, like 2000, are leap years. Write a program named leap_ that asks the user for a year and computes whether that year is a leap year.
Document information
- Uploaded on
- April 15, 2023
- Number of pages
- 1
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers