How to check if a variable is not null in Python

1 Answer

0 votes
var = 'python'

if var is not None:
    print('Var is not null')
    


'''
run:

Var is not null

'''

 



answered Jun 16, 2022 by avibootz

Related questions

8 answers 1,039 views
2 answers 248 views
2 answers 367 views
4 answers 565 views
1 answer 270 views
...