Advertisement
SimeonTs

SUPyF2 Basic - 03. Word Reverse

Sep 19th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. """
  2. Basic Syntax, Conditional Statements and Loops - Lab
  3. Check your code: https://judge.softuni.bg/Contests/Practice/Index/1718#2
  4. Video: https://www.youtube.com/watch?v=sP_t7cbZF7c
  5.  
  6. SUPyF2 Basic - 03. Word Reverse
  7.  
  8. Problem:
  9. Write a program that receives a single word from the user, reverses it and prints it
  10.  
  11. Example:
  12.  
  13. Input:
  14.    Python
  15. Output:
  16.    nohtyP
  17.  
  18. Input:
  19.    banana
  20. Output:
  21.    ananab
  22. """
  23. print(input()[::-1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement