+ 4

Lets create a confusing hello world within 15 lines

String a,b,c,d, e,f,g,h, i,j,k; a = "H";b = "e"; c = "l";d = "o"; e = "W";f = "r";g = "d!!";h = a+b+c+c+d+" "+e+d+f+c+g;i = h;j = i;k = j; if (i == a){System.out.println(d);} if (j == b){System.out.println(e);} if (k == j){System.out.println(a+b+c+c+d +" "+e+d+f+c+g);}

1st Jul 2017, 10:19 PM
D_Stark
D_Stark - avatar
5 Answers
+ 11
import string printable=string.printable nums=[72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33] new=[] for n in nums: for p in printable: if p==chr(n): new.append(p) new="".join(new) print(new) https://code.sololearn.com/c994pzG9CeyQ/?ref=app
1st Jul 2017, 11:22 PM
Ahri Fox
Ahri Fox - avatar
2nd Jul 2017, 3:20 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 3
Nice
2nd Jul 2017, 3:59 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
2nd Jul 2017, 6:09 AM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
0
Nice@David but you have to change string to char, to minimize the amount of memory occupied by this code. and also for clearance code use an Array of characters.
2nd Jul 2017, 12:16 AM
Nura Programmer
Nura Programmer - avatar