Project

CONDITIONALS AND FUNCTIONS

Objective: (a) x is given below. Write an if statement that will print whether x is positive, negative, or zero. x=-10 x = -10 if x == 0: print("x is positive") elif x > 0: print("x is positive") else: print("x is negative") (b) x and y are given below. Write an if statement that will print whether x and y are both positive, or…

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.