SimeonTs

SUPyF2 Lists Basics Lab - 02. Strange Zoo

Sep 27th, 2019
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.67 KB | None | 0 0
  1. """
  2. Lists Basics - Lab
  3. Check your code: https://judge.softuni.bg/Contests/Practice/Index/1724#1
  4.  
  5. SUPyF2 Lists Basics Lab - 02. Strange Zoo
  6.  
  7. Problem:
  8. You are at the zoo and the meerkats look strange. You will receive 3 strings: (tail, body, head).
  9. You have to re-arrange the elements in a list, so that the animal looks normal again: (head, body, tail)
  10.  
  11. Example:
  12. Input:
  13. my tail
  14. my body seems on place
  15. my head is on the wrong end!
  16. Output:
  17. ['my head is on the wrong end!','my body seems on place','my tail']
  18.  
  19. Input:
  20. tail
  21. body
  22. head
  23. Output:
  24. ['head', 'body', 'tail']
  25. """
  26. tail = input()
  27. body = input()
  28. head = input()
  29. my_list = [head, body, tail]
  30. print(my_list)
Add Comment
Please, Sign In to add comment