2
\$\begingroup\$

I was going to submit an answer but it would have to import a module (which is built-in to Python). This makes my answer two-lined, because of the import. Is this acceptable?

\$\endgroup\$
1
  • \$\begingroup\$ no, but in most languages (not python though) it's shorter. \$\endgroup\$ Aug 15, 2016 at 23:40

1 Answer 1

9
\$\begingroup\$

Of course it is acceptable. :)

Your answer can span as many lines as you like (in fact, there are many languages used around here where most programs have to span multiple lines). Just add the required linefeeds to your byte count. Simple example:

foo
bar
baz

Would be 11 bytes. (Unless the program requires a trailing linefeed as well, in which case it would be 12 bytes, but I don't think you'll have to worry about that in Python.)

\$\endgroup\$
4
  • 1
    \$\begingroup\$ Thanks! I'll submit the answer :) \$\endgroup\$
    – iPhynx
    Aug 15, 2016 at 16:38
  • \$\begingroup\$ Oops. I won't accept it... Built-in constants that contain 9 or more of the above characters are disallowed. \$\endgroup\$
    – iPhynx
    Aug 15, 2016 at 16:40
  • 3
    \$\begingroup\$ Your comment seems to be quite out of context. If you are asking with regard of a specific question please link it. \$\endgroup\$
    – flawr
    Aug 15, 2016 at 18:00
  • \$\begingroup\$ Yeah. Sorry. Question \$\endgroup\$
    – iPhynx
    Aug 17, 2016 at 17:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .