Skip to content

No inline values shown for results of function #241942

Closed
@chrisdias

Description

@chrisdias

Testing #241791

I would expect to see inline values for at least line 15 given the other examples. But, I don't see any in this cell.

Image

here's the code:

def divide_numbers(a, b):
    try:
        result = a / b
        return result
    except ZeroDivisionError:
        return "Error: Division by zero!"
    except TypeError:
        return "Error: Invalid input types!"
    finally:
        print("Division operation attempted")

# Test error handling
print(divide_numbers(10, 2))
print(divide_numbers(10, 0))
print(divide_numbers(10, "2"))

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions