+ 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:
5 Answers
+ 16
#My try âïžđ đ (1 LINERS)
#Ruby :-
p gets.chomp.reverse!
#Python :-
print (input()[::-1])
#PHP :-
<?php echo strrev("input"); ?>
+ 4
https://code.sololearn.com/W49467g9No21/?ref=app
+ 2
https://code.sololearn.com/cfXMhtnzYC9e/?ref=app