Skip to main content
added 322 characters in body
Source Link
AMK
  • 644
  • 1
  • 5
  • 7

May be simplest solution for Python

print'*'*11

and for Py3K

print('*'*13)

and another generic solution for Py3K

import random, sys

def main():
    f = open(__file__).read()
    d = ' \t\n'
    r = ''.join(chr(c) for c in range(33, 127))
    sys.stdout.write(''.join(c if c in d else random.choice(r) for c in f))

if __name__ == '__main__':
    main()

May be simplest solution for Python

print'*'*11

and for Py3K

print('*'*13)

May be simplest solution for Python

print'*'*11

and for Py3K

print('*'*13)

and another generic solution for Py3K

import random, sys

def main():
    f = open(__file__).read()
    d = ' \t\n'
    r = ''.join(chr(c) for c in range(33, 127))
    sys.stdout.write(''.join(c if c in d else random.choice(r) for c in f))

if __name__ == '__main__':
    main()
Source Link
AMK
  • 644
  • 1
  • 5
  • 7

May be simplest solution for Python

print'*'*11

and for Py3K

print('*'*13)