Hello World!

Just wanna say "Hello World!" :slight_smile:

$ perl -e 'print "Hello Yourself\n";'
Hello Yourself
printf "\88\145\154\154\157\40\164\157\40\169\157\165\40\164\157\157\39\12"
1 Like
printf "\110\145\154\154\157\040\041\041\041\n"
Hello !!!

venkat

OSX 10.7.5, deafult bash terminal running python...

Call as

Prompt:-> python hello_world.py 

...

# HW.py
# Almost any version of standard text mode Python inside a terminal on Linux OS...
# IMPORTANT! The print() function MUST be a single line only so beware of wordwrapping, etc... etc...
# You may need to edit it if wordwrapping occurs...
# (C)2012, B.Walker, G0LCU...
#
# Edited on 02-04-2012 as per comment by S.D'Aprano.
#
# NOTE:- There is NO malicious intent in this code!!!
# I DO expect, however, that professionals _know_ how to manipulate Linux terminal colours through Python!

reset_term_colours="\033[0m"

f="\033[0;36;41m"
b="\033[0;31;46m"
lines=0

print(reset_term_colours)

for lines in range (0,50,1): print(b)

print(b+" "+f+" "+b+"   "+f+" "+b+"        "+f+" "+b+"     "+f+" "+b+"                "+f+" "+b+"   "+f+" "+b+"              "+f+" "+b+"        "+f+" "+b+"   "+f+" "+b+"\n "+f+" "+b+"   "+f+" "+b+"        "+f+" "+b+"     "+f+" "+b+"                "+f+" "+b+"   "+f+" "+b+"              "+f+" "+b+"        "+f+" "+b+"   "+f+" "+b+"\n "+f+" "+b+"   "+f+" "+b+"  "+f+"   "+b+"   "+f+" "+b+"     "+f+" "+b+"     "+f+"   "+b+"        "+f+" "+b+"   "+f+" "+b+"  "+f+"   "+b+"  "+f+" "+b+" "+f+"   "+b+"  "+f+" "+b+"     "+f+"    "+b+"   "+f+" "+b+"\n "+f+"     "+b+" "+f+" "+b+"   "+f+" "+b+"  "+f+" "+b+"     "+f+" "+b+"    "+f+" "+b+"   "+f+" "+b+"       "+f+" "+b+"   "+f+" "+b+" "+f+" "+b+"   "+f+" "+b+" "+f+"  "+b+"     "+f+" "+b+"    "+f+" "+b+"   "+f+" "+b+"   "+f+" "+b+"\n "+f+" "+b+"   "+f+" "+b+" "+f+"     "+b+"  "+f+" "+b+"     "+f+" "+b+"    "+f+" "+b+"   "+f+" "+b+"       "+f+" "+b+" "+f+" "+b+" "+f+" "+b+" "+f+" "+b+"   "+f+" "+b+" "+f+" "+b+"      "+f+" "+b+"    "+f+" "+b+"   "+f+" "+b+"   "+f+" "+b+"\n "+f+" "+b+"   "+f+" "+b+" "+f+" "+b+"      "+f+" "+b+"     "+f+" "+b+"    "+f+" "+b+"   "+f+" "+b+"       "+f+"  "+b+" "+f+"  "+b+" "+f+" "+b+"   "+f+" "+b+" "+f+" "+b+"      "+f+" "+b+"    "+f+" "+b+"   "+f+" "+b+"\n "+f+" "+b+"   "+f+" "+b+"  "+f+"    "+b+"   "+f+"   "+b+"   "+f+"   "+b+"  "+f+"   "+b+"        "+f+" "+b+"   "+f+" "+b+"  "+f+"   "+b+"  "+f+" "+b+"       "+f+"   "+b+"  "+f+"    "+b+"   "+f+" "+b+"\n\n\n\n\n Hello World!\n\n\n\n\033[0;30;46mPress Ctrl_C to Quit/Stop/Exit...")

print(reset_term_colours)

while 1: pass

Bazza...

Hello everyone! I'm new into programming and I joined this forum to learn more information and gain some extra tips about it! :slight_smile:

eval \
	echo \
	$(printf \
	"$(printf \
	'\134\061\061\060\134\061\064\065\134\061\065\064\134\061\065\064\134\061\065\067\134\060\064\060\134\060\064\064\134\061\062\065\134\061\062\063\134\061\060\065\134\061\062\062'\
	)")

edited: for no horizontal scroll bar at 1920x1080.
info: this is considred bad coding, mainly but not only due to the eval :rolleyes:

1 Like