↧
Answer by 200_success for Python script for making a table
Before rewriting the program, I'll start with some smaller issues.Minor simplificationsUse print and '''long strings''' instead of multiple file.write() calls to get newlines. Use r'' (raw strings) to...
View ArticleAnswer by jcollado for Python script for making a table
I think you already have an idea about what to do. In particular, the idea touse a dictionary to store information using a key will make your code free ofexecs. For example:linesigs = {}for sig in...
View ArticlePython script for making a table
I have written a Python 2.6.6 script in order to make tables by taking the third column of every text file in a particular subgroup (signal and background in this case[particle physics]). However, I...
View Article