Want quant roles sent to your inbox?

Get quant job listings, interview prep resources, and industry news delivered to you for free.

No spam. Unsubscribe anytime.

Positive and Even

Programming Questions

← Back

Positive and Even

You are given a function positive_and_even, with input int a. You are to return the following:

If the variable a is even and positive, return the string "satisfactory", otherwise return the string "unsatisfactory".

Input:

  • a: An integer

Example 1:

positive_and_even(-6) = "unsatisfactory"

Example 2:

positive_and_even(5) = "unsatisfactory"

Example 3:

positive_and_even(10) = "satisfactory"

Not Completed

Completed!

positive_and_even.py

Tests - to submit your code!

symbol symbol

Efficiency

symbol symbol

Test Case 1

symbol symbol

Test Case 2

symbol symbol

Test Case 3

symbol symbol

Test Case 4

symbol symbol

Test Case 5

symbol symbol

Test Case 6

symbol symbol

Test Case 7

symbol symbol

Test Case 8

symbol symbol

Test Case 9

symbol symbol

Test Case 10

symbol Submit to See Results

symbol Submit to See Results

symbol Submit to See Results

symbol Submit to See Results

symbol Submit to See Results

symbol Submit to See Results

symbol Submit to See Results

symbol Submit to See Results

symbol Submit to See Results

symbol Submit to See Results

symbol Submit to See Results

Join our Newsletter and Receive the Latest Updates!

Main Links

Academy Trade Courses Assessments Interview Prep Contact Us

Social Media

Facebook Instagram YouTube

Legal

Terms and Conditions

Talent Acquisition

Looking to hire exceptional quant talent?

© 2026 EverythingQuant. All Rights Reserved.