I have a method that sometimes returns a NoneType value. So how can I question a variable that is a NoneType? I need to use if method, for example
if not new: new = '#'
I know that is the wrong way and I hope you understand what I meant.
← Назад к списку