Skip to content

Commit

Permalink
fixing bug where strings weren't indexed in match loop
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLangmead committed Oct 9, 2015
1 parent 3c5d54f commit f7992c0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions 1.02_ManipulatingDNAStrings.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
" if not len(s1) == len(s2):\n",
" return False\n",
" for i in range(0, len(s1)):\n",
" if not s1 == s2:\n",
" if not s1[i] == s2[i]:\n",
" return False\n",
" return True\n",
"match('ACCATTG', 'ACCATTG')"
Expand Down Expand Up @@ -164,21 +164,21 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 2",
"language": "python",
"name": "python3"
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.4.3"
"pygments_lexer": "ipython2",
"version": "2.7.10"
}
},
"nbformat": 4,
Expand Down

0 comments on commit f7992c0

Please sign in to comment.