def count_columns(table_name):
cur.execute("SELECT * FROM " + table_name)
for row in cur.fetchall():
if len(row) == "2":
print("ID: ", row,[0], "Category: ", row[1])
elif len(row) == "3":
print("ID: ", row,[0], "Range: ", row[1], "Category: ", row[2])
elif len(row) == "4":
print("ID: ", row,[0], "Systolic: ", row[1], "Diastolic: ", row[2], "Category: ", row[3])