{"action":"created","issue":{"url":"https://api.github.com/repos/rmotr-curriculum/base-python-curriculum-questions/issues/46","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/46/labels{/name}","comments_url":"https://api.github.com/repos/rmotr-curriculum/base-python-curriculum-questions/issues/46/comments","events_url":"https://api.github.com/repos/rmotr-curriculum/base-python-curriculum-questions/issues/46/events","html_url":"https://github.com/rmotr-curriculum/base-python-curriculum-questions/issues/46","id":304203337,"number":46,"title":"How can I print my variables into the correct format?","user":{"login":"branhoff","id":36856538,"avatar_url":"https://avatars3.githubusercontent.com/u/36856538?v=4","gravatar_id":"","url":"https://api.github.com/users/branhoff","html_url":"https://github.com/branhoff","followers_url":"https://api.github.com/users/branhoff/followers","following_url":"https://api.github.com/users/branhoff/following{/other_user}","gists_url":"https://api.github.com/users/branhoff/gists{/gist_id}","starred_url":"https://api.github.com/users/branhoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/branhoff/subscriptions","organizations_url":"https://api.github.com/users/branhoff/orgs","repos_url":"https://api.github.com/users/branhoff/repos","events_url":"https://api.github.com/users/branhoff/events{/privacy}","received_events_url":"https://api.github.com/users/branhoff/received_events","type":"User","site_admin":false},"labels":[{"id":818655412,"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":863739830,"url":"https://api.github.com/repos/rmotr-curriculum/base-python-curriculum-questions/labels/positions","name":"positions","color":"ededed","default":false},{"id":818655413,"url":"https://api.github.com/repos/rmotr-curriculum/base-python-curriculum-questions/labels/validated","name":"validated","color":"ededed","default":false},{"id":831634005,"url":"https://api.github.com/repos/rmotr-curriculum/base-python-curriculum-questions/labels/week-1-quiz","name":"week-1-quiz","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-03-11T23:02:41Z","updated_at":"2018-03-12T14:29:59Z","closed_at":null,"author_association":"NONE","body":"\nI've returned single variables in the other problems, but I'm not sure how to return multiple variables as a combined string.\n\n**Assignment**: http://learn.rmotr.com/python/base-python-track/week-1-quiz/positions\n\n**User code**:\n```python\ndef positions(a_string, first_word, second_word, third_word):\n    first_word_counter = 0\n    second_word_counter = 0\n    third_word_counter = 0\n    #solution = %, %, %\n    for word in a_string:\n        if a_string[first_word_counter:len(first_word) + first_word_counter] == first_word:\n            return first_word_counter\n        first_word_counter += 1\n    for word in a_string:\n        if a_string[second_word_counter:len(second_word) + second_word_counter] == second_word:\n            return second_word_counter\n        second_word_counter += 1 \n    for word in a_string:\n        if a_string[third_word_counter:len(third_word) + third_word_counter] == third_word:\n            return third_word_counter\n        third_word_counter += 1 \n    if first_word_counter == len(a_string):\n        first_word_counter = '-'\n    if second_word_counter == len(a_string):\n        second_word_counter = '-'\n    if third_word_counter == len(a_string):\n        third_word_counter = '-'\n    return solution\n    pass\n               \nphrase = \"Python is good. Python is Wise. I like Python\"\n\nprint(positions(phrase, 'Python', 'is', 'good'))\n\nprint('%,%,%'{'0','7', '-'})\n```\n"},"comment":{"url":"https://api.github.com/repos/rmotr-curriculum/base-python-curriculum-questions/issues/comments/372329050","html_url":"https://github.com/rmotr-curriculum/base-python-curriculum-questions/issues/46#issuecomment-372329050","issue_url":"https://api.github.com/repos/rmotr-curriculum/base-python-curriculum-questions/issues/46","id":372329050,"user":{"login":"jsymons","id":11019465,"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-03-12T14:29:59Z","updated_at":"2018-03-12T14:29:59Z","author_association":"NONE","body":"https://guides.github.com/features/mastering-markdown/\r\nGithub comments are done in Markdown, see the above link for info on Markdown formatting"}}
{"actor":{"display_login":"jsymons"}}