status = None r = { "Status": status.string[:len(status.string)-3] if status is not None else "Not listed"} print(r)
Standard input is empty
{'Status': 'Not listed'}
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!