How to print comma separated values of array?

in this video when bhaiya printed comma separated values one extra comma is there in last how to print those values without extra comma at last?

hello @Tanishq_Gupta
add an if statement .
if(i!=n-1 )
print(",")

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.