Skip to content

Instantly share code, notes, and snippets.

View jcc10's full-sized avatar

Joshua Cline jcc10

View GitHub Profile
@jcc10
jcc10 / snippit.py3
Last active November 13, 2019 02:13
Codeing Competition Input Function
def mass_input(prompt=None, lines=None, end=None):
"""Returns a list of lines of input."""
# Must only have lines *or* end.
assert lines is None or end is None
# *Must* have lines or end.
assert lines is not None or end is not None
# Output array