7 kyu
Two numbers are positive
2,718 of 6,971CodewarsDenis
Description:
Task:
Your job is to write a function, which takes three integers a
, b
, and c
as arguments, and returns True
if exactly two of the three integers are positive numbers (greater than zero), and False
- otherwise.
Examples:
two_are_positive(2, 4, -3) == True
two_are_positive(-4, 6, 8) == True
two_are_positive(4, -6, 9) == True
two_are_positive(-4, 6, 0) == False
two_are_positive(4, 6, 10) == False
two_are_positive(-14, -3, -4) == False
Fundamentals
Similar Kata:
Stats:
Created | Feb 18, 2021 |
Published | Feb 18, 2021 |
Warriors Trained | 8774 |
Total Skips | 156 |
Total Code Submissions | 15781 |
Total Times Completed | 6971 |
Python Completions | 2718 |
JavaScript Completions | 2583 |
C# Completions | 528 |
TypeScript Completions | 209 |
PHP Completions | 183 |
C Completions | 239 |
Java Completions | 719 |
CoffeeScript Completions | 14 |
Rust Completions | 121 |
Total Stars | 43 |
% of votes with a positive feedback rating | 87% of 842 |
Total "Very Satisfied" Votes | 653 |
Total "Somewhat Satisfied" Votes | 152 |
Total "Not Satisfied" Votes | 37 |
Total Rank Assessments | 327 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 3 kyu |
Lowest Assessed Rank | 8 kyu |