for loops in python 3
These 2 loops are the same. subscriber_user_ids = [] #first loop for user_record in [2,3,4,5]: subscriber_user_ids.append(user_record) print(user_record) #second loop str1 = ','.join(str(user_record) for user_record in [2,3,4,5]) print(str1) https://repl.it/repls/AstonishingInconsequentialRhombus