I am currently writing a Python script to handle some logs and reformat certain parts. Part of the script makes use of the following code (as an example):
var1,var2,var3=foo.split("|")
Which works fine. However this perhaps doesn't look so nice (taking away Python's readability factor) if there are 39 values, for example:
var1,var2,var3,...,var39=foo.split("|")
Is there are a better way to format this structure?