Skip to content

Instantly share code, notes, and snippets.

@raymondctc
Created November 9, 2021 02:19
Show Gist options
  • Save raymondctc/a54fbcac834e2c6a0e7eb0909ba5f174 to your computer and use it in GitHub Desktop.
Save raymondctc/a54fbcac834e2c6a0e7eb0909ba5f174 to your computer and use it in GitHub Desktop.
Split data from Play Store filter
import sys
f = open("device_data.txt", "r")
lines = f.readlines()
count = 0
tempString = ""
for line in lines:
if count % 2 == 0:
tempString = line.replace("\n", "")
else:
tempString = tempString + "," + line
count += 1
sys.stdout.write(tempString)
tempString = ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment