Question 1 If Statement Conditionals

Check Positive, Negative, or Zero Using Simple If Statements

Write a Python program to read an integer and determine whether it is positive, negative, or zero using independent simple if statements.

Solution Code Screenshot Click image to zoom
Check Positive Negative Zero Using If Solution
Question 2 If Statement Case Conversion

Convert Alphabet to Opposite Case Using If

Write a Python program to accept a character and convert it to its opposite case (uppercase to lowercase, or lowercase to uppercase) using if conditions.

Solution Code Screenshot Click image to zoom
Alphabet Opposite Case Solution
Question 3 If Statement Absolute Value

Print Absolute Value of a Number Using If

Write a Python program to compute and display the absolute value of an input integer using a simple if statement.

Solution Code Screenshot Click image to zoom
Print Absolute Value Solution
Question copied to clipboard!