Computers and Technology

Selection challenges 1 1. Write a Python program to accept two integers and check whether they are equal or not. Test Data : 15 15
Expected Output : Number1 and Number2 are equal

2. Write a Python program to check whether a given number is even or odd.
Test Data : 15
Expected Output : 15 is an odd integer

3. Write a Python program to check whether a given number is positive or negative. Test Data : 15
Expected Output : 15 is a positive number

4. Write a Python program to find whether a given year is a leap year or not.
Test Data : 2016
Expected Output : 2016 is a leap year.

5. Write a Python program to read the age of a candidate and determine whether it is eligible for casting his/her own vote.
Test Data : 21
Expected Output : Congratulation! You are eligible for casting your vote.

6. Write a Python program to read the value of an integer m and display the value of n is 1 when m is larger than 0, 0 when m is 0 and -1 when m is less than 0.
Test Data : -5
Expected Output : The value of n = -1

7. Write a Python program to accept the height of a person in centimeter and categorize the person according to their height. Test Data : 135
Expected Output : The person is Dwarf.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 19:30, LuxTheGirl3070
Entering key dates from your course syllabi test and quiz dates, assignments due dates in your planner can you manage your schedule by allowing you to see commitments ahead of time.
Answers: 3
image
Computers and Technology, 22.06.2019 19:00, trintrin227
In he example code, what does the title attribute create? a tool tip an element a source a markup
Answers: 1
image
Computers and Technology, 22.06.2019 21:00, bryanatwin1536
Describir textbook icon_person mira los dibujos y describe lo que estΓ‘ pasando. usa los verbos de la lista.
Answers: 1
image
Computers and Technology, 23.06.2019 08:00, ionmjnm3041
The managing director of a company sends a christmas greeting to all his employees through the company email. which type of network does he use? he uses an .
Answers: 3
Do you know the correct answer?
Selection challenges 1 1. Write a Python program to accept two integers and check whether they are...

Questions in other subjects:

Konu
Mathematics, 27.05.2021 18:00
Konu
Mathematics, 27.05.2021 18:00
Konu
Engineering, 27.05.2021 18:00