Re: Simplify Code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alexandr N Zamaraev

    Re: Simplify Code

    header_sizes = (36, 26, 22, 18, 14, 12)
    if x not in header_sizes:
    raise Exception()
    else:
    h36, h26, h22, h18, h14, h12 = tuple(
    line if x == size else '' for x in header_sizes)



Working...