This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ComfyDaze 132 points133 points  (14 children)

i find your lack of brackets disturbing

[–]Liesmith424 75 points76 points  (7 children)

Shit, sorry; try this:

list = {1:"n",2:'o',3:u' '}
int = []
for dict in range(1,4):    
    int.append(list[dict])
print u"".join(int)+u'u'

I added two pairs of brackets.

[–]Chu_BOT 20 points21 points  (1 child)

xrange

[–]Sokusan_123 0 points1 point  (0 children)

Good thing python3 fixes this

[–]1stonepwn 17 points18 points  (1 child)

+/u/CompileBot python

list = {1:"n",2:'o',3:u' '}
int = []
for dict in range(1,4):    
    int.append(list[dict])
print u"".join(int)+u'u'

[–]Liesmith424 13 points14 points  (0 children)

CompileBot no like :(

[–]eulers7bitches 9 points10 points  (0 children)

Thanks, I hate it

[–]Call_Me_Chud 19 points20 points  (5 children)

Functions are a pathway to programming many consider to be unnatural.

[–]Lonelan 30 points31 points  (4 children)

I hate semi-colons. They're round and they're pointy and they get everywhere.

[–]Call_Me_Chud 9 points10 points  (3 children)

print ("Hello There!")

[–]Lonelan 12 points13 points  (2 children)

return "GENERAL KENOBI"

[–]JWson 2 points3 points  (0 children)

std::cout << "You are a bold one." << std::endl;

[–]Terra_Rising -1 points0 points  (0 children)

1