blob: 8a2c79ee13ce7878ea72604071d23e8e64967d71 (
plain)
1
2
3
4
5
6
7
8
9
10
|
def correct_fruits(fruits):
if len(fruits) > 1: # [too-many-nested-blocks]
if "apple" in fruits:
if "orange" in fruits:
count = fruits["orange"]
if count % 2:
if "kiwi" in fruits:
if count == 2:
return True
return False
|