I'm new to write Python in RStudio.
I wrote a python function on a script. It helps me to clear python environment from workspace. When all of us write R code, brush button shows for clearing workspace and we always use the button but it doesn't work with Python. That's why I wrote this function.
As you can see on the image, it doesn't save on my workspace, when i define the function.
I have to push enter button again. Then the function defined.
How can i define the function with one enter?