Coderwall
Ruby
Python
JavaScript
Front-End
Tools
iOS
More
Tips
Ruby
Python
JavaScript
Front-End
Tools
iOS
PHP
Android
.NET
Java
Jobs
Jobs
Sign In or Up
Joined January 2019
·
Don Johnson
Don Johnson
QA DEV at Age Of Learning
·
Los Angeles
·
·
·
0 Protips
1 Comments
Posted to
Recursive reverse string in Python
over 1 year ago
def reverseString(x):
if x == "":
pass
else:
return x[::-1]
print reverseString("Hello")
Achievements
1 Karma
1 Total ProTip Views
Python
Would you expect anything less? Have at least one original repo where Python is the dominant language
Interests & Skills
docker
python
go
swagger
API
REST
bash
def reverseString(x):
if x == "":
pass
else:
return x[::-1]
print reverseString("Hello")