Hmm, I think your approach is fine, but if you want to avoid clunky code, maybe try using a function?
```python
def handle_null(value):
if value is None:
print("Value is null, doing stuff now!")
return
handle_null(some_value)
```
This way, you can reuse the logic elsewhere in your notebook. Plus, it’s easier to debug!
```python
def handle_null(value):
if value is None:
print("Value is null, doing stuff now!")
return
handle_null(some_value)
```
This way, you can reuse the logic elsewhere in your notebook. Plus, it’s easier to debug!
