scene.org File Archive

File download

<root>­/­parties­/­2024­/­vccc24­/­christmas_challenge/logiker_pc_python_57b_vc3-2024.zip

File size:
17 677 bytes (17.26K)
File date:
2024-12-29 14:13:04
Download count:
all-time: 0

Preview

  • file_id.diz 766B
  • present.py 57B
  • screenshot.png 21.67K

file_id.diz

Christmas Present Python

Author:   Logiker
Category: Christmas Challenge
System:   PC
Language: Python
Len source code: 57
Len exe file:    57
Len code only:   57
Instructions:
Run with Python interpreter.

Description:
a=f"\n+{'+':-^17}+";print("	\\o/"+(a+"\n!	 !	  !"*8)*2+a)
The variable a creates the top, middle and bottom line. The string starts with a new line, 
then a plus, then a plus, that is surrounded by 16 minuses, and finally a plus again.
When printing tab is directly used as character, and not with the longer, escaped version '\t'.
The rest is quite obvious: We have the top. Then a line and 8 columns. this twice. 
And last but not least the final line.

Comments:
I created this before the submission system got online.