Do we have to guess what problem 3 is?
vegaseat
DaniWeb's Hypocrite
6,476 posts since Oct 2004
Reputation Points: 1,447
Solved Threads: 1,611
Skill Endorsements: 36
from random import randint
thenumberasstring = str(randint(1<<32-1,1<<33-1))
print thenumberasstring
norepeats = ''
for n1,n2 in zip(thenumberasstring,thenumberasstring[1:]+' '):
if n1 != n2:
norepeats += n1
print norepeats
And when you ask better and show some coding effort we can write real code.:twisted:
pyTony
pyMod
6,309 posts since Apr 2010
Reputation Points: 879
Solved Threads: 986
Skill Endorsements: 26
pyTony
pyMod
6,309 posts since Apr 2010
Reputation Points: 879
Solved Threads: 986
Skill Endorsements: 26
Question Answered as of 2 Years Ago by
pyTony,
vegaseat,
ultimatebuster
and 1 other