Template:Code and output

Example

{{code and output|code=
print("hello")
|output=
hello
}}
print("hello")
hello


{{code and output|fit=output|code=
print(#"A really really really long string, which might linewrap, and use up too much space. Blah blah blah!")
|output=
100
}}
100
print(#"A really really really long string, which might linewrap, and use up too much space. Blah blah blah!")
{{code and output|fit=code|code=
print(#"A really really really long string, which might linewrap, and use up too much space. Blah blah blah!")
|output=
100
}}
print(#"A really really really long string, which might linewrap, and use up too much space. Blah blah blah!")
100