alkyn 0.0.5

An experimental OS for the RP2040
Documentation
1
2
3
4
5
6
7
8
9
10
11
#! /usr/bin/python3

def starts_with_1(line):
  return line[0] == "1"

log_file = open("log", "r")
lines = log_file.read().split('\n')[0::2]

sorted_lines = filter(starts_with_1, lines)
print("\n".join(sorted_lines))