Attachment 'strshufm.py'

Download

   1 #!/usr/bin/python
   2 # -*- coding: utf-8 -*-
   3 
   4 '''Вводится строка, выводится та же строка со случайно перемешанными символами
   5 Версия с использованием join()'''
   6 
   7 import random
   8 
   9 l=list(raw_input())
  10 random.shuffle(l)
  11 print "".join(l)

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.

You are not allowed to attach a file to this page.