SHARE
TWEET

Untitled

a guest Apr 26th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from random import *
  2.  
  3. text = input('Zadaj text: ')
  4. finalna_veta = ''
  5.  
  6. text = text[:-1]
  7. rozdelene = text.split(' ')
  8. for slovo in rozdelene:
  9.     vnutro = slovo[1:-1]
  10.     vnutro = list(vnutro)
  11.     shuffle(vnutro)
  12.     nove = slovo[0] + ''.join(vnutro) + slovo[-1]
  13.     finalna_veta = finalna_veta + nove + ' '
  14.  
  15. finalna_veta = finalna_veta[:-1] + '.'
  16. print(finalna_veta)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top