Explode, Implode, Rtrim in Python Django

Explode, Implode, Rtrim in Python Django like php
# Explode in python:
temp = temp1.split(",")
# Implode in python:
temp2 = ','.join([str(i) for i in temp])
# rtrim() in python:
temp = name.rstrip(',')
# Implode Array in python:
temp_Arr = ['FurnitureMakeover', 'nurserydresser', 'funcycled', 'dresser']

temp_Tags = ','.join(temp_Arr)

Leave a Reply

Your email address will not be published. Required fields are marked *