0% found this document useful (0 votes)
5 views1 page

Five Python Prac

The document contains five Python practice questions focused on the if-else concept. The questions involve checking if a number is even or odd, determining voting eligibility, assessing temperature conditions, evaluating the sign of a number, and finding the largest of three numbers. Each question is designed to enhance understanding of conditional statements in Python.

Uploaded by

mrinmoyghosh517
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

Five Python Prac

The document contains five Python practice questions focused on the if-else concept. The questions involve checking if a number is even or odd, determining voting eligibility, assessing temperature conditions, evaluating the sign of a number, and finding the largest of three numbers. Each question is designed to enhance understanding of conditional statements in Python.

Uploaded by

mrinmoyghosh517
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Five Python practice questions based on the if-else concept:

Question 1
Write a Python program that takes a number as input and checks whether it is
even or odd.

Question 2
Write a Python program to check whether a person is eligible to vote or not.
(Consider the voting age to be 18 years.)

Question 3
Write a Python program that asks the user to enter a temperature in Celsius.
If the temperature is below 0, print "Freezing weather"; otherwise, print "Not
freezing weather."

Question 4
Write a Python program that takes a number as input and checks whether it is
positive, negative, or zero.

Question 5
Write a Python program that takes three numbers as input and prints the largest
among them.

You might also like