GUVI
Back

Absolute beginner question separate the characters in a string with comma ',' .

Created 3 years ago
24 Views
1 Comments
GANJIVARAPUDSASBHARATHIN150164
@GANJIVARAPUDSASBHARATHIN150164
GANJIVARAPUDSASBHARATHIN150164
@GANJIVARAPUDSASBHARATHIN150164Profile is locked. Login

n = input()

for i in range(len(n)):

print(n[i],end=",")

expected output:

g,u,v,i
Actual Output:
g,u,v,i,

how can i remove the comma at the end of the string?

Comments
Please login to comment.
 
Powered by habitate.io Habitate