![Alex9089435028](/avatars/28313.jpg)
Alex9089435028
20.01.2021 •
Computers and Technology
What file format should you not use for website photos?
JPEG
GIF
PNG
BMP
Solved
Show answers
More tips
- P Photography and Videography How to Choose a Digital Camera?...
- C Computers and Internet How to Properly Order Clothing from International Online Stores...
- F Food and Cooking How to Calculate the Gender of Your Child with Blood?...
- S Society and Politics 10 Tips for Boosting Your Self-Esteem...
- C Computers and Internet How to Create a Folder on Your iPhone?...
- G Goods and services How to sew a ribbon: Tips for beginners...
- F Food and Cooking How to Make Mayonnaise at Home? Secrets of Homemade Mayonnaise...
- C Computers and Internet Which Phone is Best for Internet Surfing?...
- F Food and Cooking Everything You Need to Know About Pasta...
- C Computers and Internet How to Choose a Monitor?...
Answers on questions: Computers and Technology
- C Computers and Technology Jason Chang is creating photos of his restaurant for a new website. Some of the photos of the staff have red eye, others are badly lit so that the restaurant looks...
- H Health Which factor can hinder problem solving?...
- P Physics Chirs wanted to test the effect of diet pills on how tall the tomato plants in his garden would grow. he took two pots, filled them with dirt from the same bag, and...
- G Geography What are uv and sv on the number ine...
- M Mathematics The student council is raising money by selling bottled water at a band competition. the table shows the prices for different brands. which brand costs the least per...
- M Mathematics 6+2= i also need on how to show work...
- C Chemistry Which of these is an example of an engineering solution...
- M Mathematics Consider a triangle with vertices at s(-2,-3), a(2,3), and n(). part a: what is the shortest side of the triangle?...
- H History Why would the symbol of a scale best represent the congress of vienna’s accomplishments?...
- B Biology Typically, a dichotomous key moves from the to the specific traits when us to identify organisms...
Ответ:
Ответ:
Explanation:
The code does not fail on the first step since 1900 divided by 4 is actually 475 and has no remainder, meaning that it should return True. The code won't work because the if statements need to be nested in a different format. The correct algorithm would be the following, which can also be seen in the picture attached below that if we input 1900 it would output is not a leap year as it fails on the division by 400 which gives a remainder of 0.75
input_year = int(input())
if input_year % 4 == 0:
if input_year % 100 == 0:
if input_year % 400 == 0:
print(input_year, "is a leap year")
else:
print(input_year, "- not a leap year")
else:
print(input_year, "is a leap year")
else:
print(input_year, "- not a leap year")