Tuesday, 9 August 2022

python if not implementation

 https://pythonexamples.org/python-if-not/


a = []

if not a:
    print('List is empty.')
else:
    print(a)

No comments:

Post a Comment