Skip to content

Instantly share code, notes, and snippets.

@mootrichard
mootrichard / process.py
Last active July 22, 2018 12:17 — forked from jorgesancha/python_code_test_carto.md
Python code test - CARTO
#!/usr/local/bin/python3
line_count = 1
tip_amount_sum = 0
def process_line(lines):
global line_count
global tip_amount_sum
line_count += 1
tip_amount_sum += float(line.split(",")[15])