This repository has been archived by the owner on Jan 3, 2018. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed reference to the reverse method in ipynb file
- Loading branch information
1 parent
aa0b8e8
commit a35979e
Showing
1 changed file
with
2 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a35979e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For reference, this fixes a problem we encountered in Pisa with @apawlik.
There is actually no "reverse" method on python strings (only on python arrays, and it works in place).
There are different ways of doing it (without explicit loops), including:
http://stackoverflow.com/questions/931092/reverse-a-string-in-python