Advertisement
Guest User

Untitled

a guest
Jan 27th, 2018
478
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. szo = None
  2. szavak = []
  3. i = 1
  4. x = 0
  5. ahany_szo = 10
  6.  
  7. while i <= ahany_szo:
  8.     szo = input('Adj meg egy szot! ')
  9.     if szo and i <= ahany_szo - 1:
  10.         szavak.append(szo + ' ')
  11.     if szo and i is ahany_szo:
  12.         szavak.append(szo + '.' )
  13.     i += 1
  14. while x < 5:
  15.     for szo in szavak:
  16.         print(szo, end = '')
  17.     print('')
  18.     x += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement