+ 4

[ASSIGNMENT] Reverse a string

Write a function that takes a string as input and returns the string reversed. Here is my base code: class Solution: def reverse string(self. s) return string a, b:

13th Apr 2018, 6:06 AM
Anthony Perez
5 Answers
+ 16
#My try âœŒïžđŸ‘ 😎 (1 LINERS) #Ruby :- p gets.chomp.reverse! #Python :- print (input()[::-1]) #PHP :- <?php echo strrev("input"); ?>
13th Apr 2018, 3:14 PM
🌛DT🌜
🌛DT🌜 - avatar
13th Apr 2018, 6:42 AM
Baraa AB
Baraa AB - avatar
+ 4
https://code.sololearn.com/W49467g9No21/?ref=app
13th Apr 2018, 9:33 AM
josh mizzi
josh mizzi - avatar
13th Apr 2018, 1:05 PM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 2
https://code.sololearn.com/cfXMhtnzYC9e/?ref=app
13th Apr 2018, 7:27 AM
Alex
Alex - avatar