if charactergeneration == 'done':...

    print('Yay!')
else:
    print('boo hoo')

[program returned 'Yay!']