check if a negative element is found , otherwise use 0
firstNegativeElement = arr [ firstNegativeIndex ] if arr [ firstNegativeIndex ] < 0 else 0 NEW_LINE print ( firstNegativeElement , end = ' ▁ ' ) NEW_LINE