본문 바로가기
Programming/Contest

[coderbyte] First Reverse

by NAMP 2016. 4. 8.

[coderbyte] First Reverse

Have the function FirstReverse(str) take the str parameter being passed and return the string in reversed order.

Use the Parameter Testing feature in the box below to test your code with different arguments.

def FirstReverse(str): 

  # code goes here 
  # Note: don't forget to properly indent in Python
  return str[::-1]
    
# keep this function call here  
print FirstReverse(raw_input())           

ref

tags: coderbyte, python, algorithm

'Programming > Contest' 카테고리의 다른 글

[Code Jam to I/O 2016 for Women] Problem B. Dance Around The Clock  (0) 2016.04.09
[checkio] House password  (0) 2016.04.07
[checkio] Median  (0) 2016.04.06
[checkio] Non-unique Elements  (0) 2016.04.05
[codingame] The Descent  (0) 2014.12.13

댓글