{"action":"created","issue":{"url":"https://api.github.com/repos/rmotr-curriculum/base-python-curriculum-questions/issues/133","repository_url":"https://api.github.com/repos/rmotr-curriculum/base-python-curriculum-questions","labels_url":"https://api.github.com/repos/rmotr-curriculum/base-python-curriculum-questions/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/rmotr-curriculum/base-python-curriculum-questions/issues/133/comments","events_url":"https://api.github.com/repos/rmotr-curriculum/base-python-curriculum-questions/issues/133/events","html_url":"https://github.com/rmotr-curriculum/base-python-curriculum-questions/issues/133","id":330388472,"node_id":"MDU6SXNzdWUzMzAzODg0NzI=","number":133,"title":"What's wrong with this code?","user":{"login":"marcosviv88","id":39972187,"node_id":"MDQ6VXNlcjM5OTcyMTg3","avatar_url":"https://avatars2.githubusercontent.com/u/39972187?v=4","gravatar_id":"","url":"https://api.github.com/users/marcosviv88","html_url":"https://github.com/marcosviv88","followers_url":"https://api.github.com/users/marcosviv88/followers","following_url":"https://api.github.com/users/marcosviv88/following{/other_user}","gists_url":"https://api.github.com/users/marcosviv88/gists{/gist_id}","starred_url":"https://api.github.com/users/marcosviv88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcosviv88/subscriptions","organizations_url":"https://api.github.com/users/marcosviv88/orgs","repos_url":"https://api.github.com/users/marcosviv88/repos","events_url":"https://api.github.com/users/marcosviv88/events{/privacy}","received_events_url":"https://api.github.com/users/marcosviv88/received_events","type":"User","site_admin":false},"labels":[{"id":818655412,"node_id":"MDU6TGFiZWw4MTg2NTU0MTI=","url":"https://api.github.com/repos/rmotr-curriculum/base-python-curriculum-questions/labels/base-python-track","name":"base-python-track","color":"ededed","default":false},{"id":859639643,"node_id":"MDU6TGFiZWw4NTk2Mzk2NDM=","url":"https://api.github.com/repos/rmotr-curriculum/base-python-curriculum-questions/labels/convert-pirate-to-dog","name":"convert-pirate-to-dog","color":"ededed","default":false},{"id":830164191,"node_id":"MDU6TGFiZWw4MzAxNjQxOTE=","url":"https://api.github.com/repos/rmotr-curriculum/base-python-curriculum-questions/labels/strings","name":"strings","color":"ededed","default":false},{"id":818655413,"node_id":"MDU6TGFiZWw4MTg2NTU0MTM=","url":"https://api.github.com/repos/rmotr-curriculum/base-python-curriculum-questions/labels/validated","name":"validated","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-07T18:36:57Z","updated_at":"2018-06-07T23:58:28Z","closed_at":null,"author_association":"NONE","body":"\nSo this code seems to be working, but I get an error message. What am I doing wrong?\n\n**Assignment**: http://learn.rmotr.com/python/base-python-track/strings/convert-pirate-to-dog\n\n**User code**:\n```python\ndef convert_pirate_to_dog(pirate_saying):\n    for letter in pirate_saying: \n        dog_saying = letter + 'oo' \n        print(dog_saying, end=\"\")\n```\n"},"comment":{"url":"https://api.github.com/repos/rmotr-curriculum/base-python-curriculum-questions/issues/comments/395602417","html_url":"https://github.com/rmotr-curriculum/base-python-curriculum-questions/issues/133#issuecomment-395602417","issue_url":"https://api.github.com/repos/rmotr-curriculum/base-python-curriculum-questions/issues/133","id":395602417,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTYwMjQxNw==","user":{"login":"jsymons","id":11019465,"node_id":"MDQ6VXNlcjExMDE5NDY1","avatar_url":"https://avatars1.githubusercontent.com/u/11019465?v=4","gravatar_id":"","url":"https://api.github.com/users/jsymons","html_url":"https://github.com/jsymons","followers_url":"https://api.github.com/users/jsymons/followers","following_url":"https://api.github.com/users/jsymons/following{/other_user}","gists_url":"https://api.github.com/users/jsymons/gists{/gist_id}","starred_url":"https://api.github.com/users/jsymons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsymons/subscriptions","organizations_url":"https://api.github.com/users/jsymons/orgs","repos_url":"https://api.github.com/users/jsymons/repos","events_url":"https://api.github.com/users/jsymons/events{/privacy}","received_events_url":"https://api.github.com/users/jsymons/received_events","type":"User","site_admin":false},"created_at":"2018-06-07T23:58:28Z","updated_at":"2018-06-07T23:58:28Z","author_association":"NONE","body":"So there's a couple of things going on here...\r\nFirst and foremost you're using `print` instead of `return`, the tests all operate off of the **returned** value, no return statement means it returns `None`.\r\nBecause we need to use a `return` statement we need to have that *outside* the for loop, otherwise the return will break the loop on the first iteration. This means you'll need to initialize a string *outside* the for loop and concatenate it using `+=` in your for loop. You then `return` the string *after* the for loop has finished.\r\n\r\nHope this clears things up. If you need further explanation let me know."}}
{"actor":{"display_login":"jsymons"}}