We’re rewarding the question askers & reputations are being recalculated! Read more.
4 replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
source | link

Python 84

Requires input in brackets instead of parenthesis.

a=input();r=[]
while a:
 n=a.pop(0);m=10-n
 if m in a:a.remove(m);r+=[(n,m)]
print r

For roughly the same answer golfed better see Daniel's answerDaniel's answer.

Python 84

Requires input in brackets instead of parenthesis.

a=input();r=[]
while a:
 n=a.pop(0);m=10-n
 if m in a:a.remove(m);r+=[(n,m)]
print r

For roughly the same answer golfed better see Daniel's answer.

Python 84

Requires input in brackets instead of parenthesis.

a=input();r=[]
while a:
 n=a.pop(0);m=10-n
 if m in a:a.remove(m);r+=[(n,m)]
print r

For roughly the same answer golfed better see Daniel's answer.

3 added 66 characters in body
source | link

Python 84

Requires input in brackets instead of parenthesis.

a=input();r=[]
while a:
 n=a.pop(0);m=10-n
 if m in a:a.remove(m);r+=[(n,m)]
print r

For roughly the same answer golfed better see Daniel's answer.

Python 84

Requires input in brackets instead of parenthesis.

a=input();r=[]
while a:
 n=a.pop(0);m=10-n
 if m in a:a.remove(m);r+=[(n,m)]
print r

Python 84

Requires input in brackets instead of parenthesis.

a=input();r=[]
while a:
 n=a.pop(0);m=10-n
 if m in a:a.remove(m);r+=[(n,m)]
print r

For roughly the same answer golfed better see Daniel's answer.

2 deleted 4 characters in body
source | link

Python 8884

Requires input in brackets instead of parenthesis.

a=input();r=[]
while a:
 n,a=a[0],a[1:];m=10n=a.pop(0);m=10-n
 if m in a:a.remove(m);r+=[(n,m)]
print r

Python 88

Requires input in brackets instead of parenthesis.

a=input();r=[]
while a:
 n,a=a[0],a[1:];m=10-n
 if m in a:a.remove(m);r+=[(n,m)]
print r

Python 84

Requires input in brackets instead of parenthesis.

a=input();r=[]
while a:
 n=a.pop(0);m=10-n
 if m in a:a.remove(m);r+=[(n,m)]
print r
1
source | link