I want to run a code like this:
a = [s,sd,f,r]
if len(a)>0:
print("Length is greater then '0'")
else:
What should I put under else: if do not want to do something else.
Don't put else if you don't need it
If you don't want want to do something else, you don't have to use the else part of the statement.
Or you could put
else: None
ifwithoutelse