id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

crehwinkel@frhsd.com python_functions > onlyOneNegative
prev  |  next  |  chance

Write a function called onlyOneNegative that returns true if only ONE of the two parameters passed to the method is a negative number.


onlyOneNegative(-1, 4) → True
onlyOneNegative(3, 20) → False
onlyOneNegative(-5, -13) → False

...Save, Compile, Run (ctrl-enter)

def onlyOneNegative(a, b):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 100

Copyright Nick Parlante 2017 - privacy