Computers and Technology, 06.04.2021 08:00 lilday2444
My code get an input of 1900 and it should output not a leap year but it fails first line of code. It should output not a Leap any number with 1500 not divisble by 4 with/out a remainder should output (not a leap year. )
input_year = int(input())
if input_year % 4 == 0: #fails on this step, 1900 should be false
print(input_year, "- is Leap Year")
elif input_year % 100 == 0:
print(input_year, "- leap year")
elif input_year % 400 ==0:
print(input_year, "is a leap year")
else:
print(input_year, "- not a leap year")
Answers: 1
Computers and Technology, 22.06.2019 12:00
Which of the following “invisible” marks represents an inserted tab?
Answers: 1
Computers and Technology, 24.06.2019 07:30
John recently worked on a project about various programming languages. he learned that though procedural language programs are useful, they have disadvantages too. what is a disadvantage of programs written in procedural languages? a. programs do not represent data complexity. b. programs take more time to execute. c. programs are prone to security threats. d. programs do not interface with multiple platforms.
Answers: 3
Computers and Technology, 24.06.2019 15:00
When a presentation is being planned, it is important to ensure that it covers all available information. appeals to the audience. uses multimedia tools. entertains the audience.
Answers: 1
Computers and Technology, 24.06.2019 15:30
What is the function of compilers and interpreters? how does a compiler differ from an interpreter?
Answers: 2
My code get an input of 1900 and it should output not a leap year but it fails first line of code. I...
Mathematics, 21.09.2021 07:10
Mathematics, 21.09.2021 07:10
Biology, 21.09.2021 07:10
Mathematics, 21.09.2021 07:10
Mathematics, 21.09.2021 07:10
History, 21.09.2021 07:10
Mathematics, 21.09.2021 07:20
Mathematics, 21.09.2021 07:20
Mathematics, 21.09.2021 07:20
Biology, 21.09.2021 07:20
Social Studies, 21.09.2021 07:20
German, 21.09.2021 07:20