Quantcast
Channel: Python script for making a table - Code Review Stack Exchange
Browsing latest articles
Browse All 3 View Live

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 Article


Answer 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 Article


Python 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
Browsing latest articles
Browse All 3 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>