I have the winapps custom module. If the software is present, it prints the details; otherwise it does nothing.
How would I make an if statement to print something if the software wasn't found?
Here is the code:
with open('output3.txt', 'w') as f:
for item in winapps.search_installed('ledger'):
print(item, end='\n\n', file=f)