Codes of the string problem of CP

how to return the output in this format given below

[aabe, aay, ale, kbe, ky]

initially print ‘[’ and then print all the string with a comma and space , except for the last string value and finally print ‘]’
below code will make more sense :-

Thank you.I got the correct solution

@hrit04, great!! please mark your doubt as RESOLVED if no further query!!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

can you please share the solution one more time thesolution is not visible