{"action":"created","comment":{"url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/pulls/comments/227385292","pull_request_review_id":167407406,"id":227385292,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzM4NTI5Mg==","diff_hunk":"@@ -191,58 +192,74 @@ C) Add a delay while falling in each step with ``time.sleep(secs)`, Eg. ``time.s\n ===============\n \n Dictionaries are super useful python data structures and if you are dealing with data, like\n-wikipedia data, questionaire data, or anything you can imagine, dictionaries will prove useful.\n+wikipedia data, questionnaire data, or anything you can imagine, dictionaries will prove useful.\n \n-A) Let's use a dictionary to describe each room. Create a dictionary\n-   variable called door_greetings with keys the door numbers and values the door greeting. eg. door_greetings = {'1': \"Welcome to the paradise\"}.\n+Continue in your file from the previous exercise or use the solution from the previous exercise\n+as a base for this exercise.\n \n-B) When the user enters each room print the corresponding door greeting from the dictionary.\n+A) Let's use a dictionary to describe each room greeting. Create a dictionary\n+   variable called ``door_greetings`` with keys the door numbers and values\n+   the door greeting. It could look like:\n \n .. code-block:: python\n \n-    # Exercise A\n-    # door_greetings =\n+   door_greetings = {'1': \"Welcome to the paradise\"}\n \n-    print()\n+::\n \n-    print(\"Do you go through door 1 or door 2?\")\n+Tip: Define the variable together with other global variables (see file_structure_).\n \n-    door = input(\"> \")\n+B) When the user enters each room print the corresponding door greeting from the\n+   dictionary. Use the ``door`` variable to show the correct message.\n \n-    if door == \"1\":\n-        # Exercise B - print room greeting\n-        print(\"There is a nice vampire asking you if you enjoy life.\")\n-        print(\"What do you do?\")\n-        print(\"1. Smile and nod\")\n-        print(\"2. Scream and run\")\n+7. While the user types crap keep asking\n+========================================\n \n-        vampire = input(\"> \")\n+So far in the game when the user types something that is not correct, the program continues\n+giving a message. What if we want that the program keeps asking until the user types\n+something useful? Then the code should be executed again. For example if we would be asking\n \n-        if vampire == \"1\":\n-            print(f\"Congratulations {name}, you found a new friend!\")\n-        elif vampire == \"2\":\n-            print(f\"Sorry {name}, the vampire is faster. You become a dinner.\")\n-        else:\n-            # Your code from Task 3 should be here\n+Example ``Invalid message``:\n \n-    # Your code from Task 1 should be here\n \n-    else:\n-        wrong_input()\n+.. code-block:: python\n+\n+\n+    number = input('Choose a door (1/2):')\n \n-    # Your code from Task 2 should be here\n+    if number != '1' and number != '2':\n+        print('Only 1 or 2 is valid!!!!')\n \n+The the code could be repeated with a `while` loop. Any command inside while (indented","path":"tasks/README.rst","position":76,"original_position":76,"commit_id":"af104ad817842651decd1d356e7a65056aa9db65","original_commit_id":"af104ad817842651decd1d356e7a65056aa9db65","user":{"login":"katyanna","id":1137200,"node_id":"MDQ6VXNlcjExMzcyMDA=","avatar_url":"https://avatars0.githubusercontent.com/u/1137200?v=4","gravatar_id":"","url":"https://api.github.com/users/katyanna","html_url":"https://github.com/katyanna","followers_url":"https://api.github.com/users/katyanna/followers","following_url":"https://api.github.com/users/katyanna/following{/other_user}","gists_url":"https://api.github.com/users/katyanna/gists{/gist_id}","starred_url":"https://api.github.com/users/katyanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katyanna/subscriptions","organizations_url":"https://api.github.com/users/katyanna/orgs","repos_url":"https://api.github.com/users/katyanna/repos","events_url":"https://api.github.com/users/katyanna/events{/privacy}","received_events_url":"https://api.github.com/users/katyanna/received_events","type":"User","site_admin":false},"body":"```suggestion\r\nThe code could be repeated with a `while` loop. Any command inside while (indented\r\n```","created_at":"2018-10-23T13:18:58Z","updated_at":"2018-10-23T13:44:09Z","html_url":"https://github.com/PyLadiesBerlin/python-beginners-workshop/pull/16#discussion_r227385292","pull_request_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/pulls/16","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/pulls/comments/227385292"},"html":{"href":"https://github.com/PyLadiesBerlin/python-beginners-workshop/pull/16#discussion_r227385292"},"pull_request":{"href":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/pulls/16","id":224809657,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0ODA5NjU3","html_url":"https://github.com/PyLadiesBerlin/python-beginners-workshop/pull/16","diff_url":"https://github.com/PyLadiesBerlin/python-beginners-workshop/pull/16.diff","patch_url":"https://github.com/PyLadiesBerlin/python-beginners-workshop/pull/16.patch","issue_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/issues/16","number":16,"state":"open","locked":false,"title":"Add more explanations","user":{"login":"mei-li","id":1010264,"node_id":"MDQ6VXNlcjEwMTAyNjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1010264?v=4","gravatar_id":"","url":"https://api.github.com/users/mei-li","html_url":"https://github.com/mei-li","followers_url":"https://api.github.com/users/mei-li/followers","following_url":"https://api.github.com/users/mei-li/following{/other_user}","gists_url":"https://api.github.com/users/mei-li/gists{/gist_id}","starred_url":"https://api.github.com/users/mei-li/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mei-li/subscriptions","organizations_url":"https://api.github.com/users/mei-li/orgs","repos_url":"https://api.github.com/users/mei-li/repos","events_url":"https://api.github.com/users/mei-li/events{/privacy}","received_events_url":"https://api.github.com/users/mei-li/received_events","type":"User","site_admin":false},"body":"Closes #16 \r\nAdd a new exercise 7 as well\r\nAfter this links to solutions and optional links to theory are missing","created_at":"2018-10-22T20:49:49Z","updated_at":"2018-10-23T13:44:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c38a7c83344d8df29230efa652a797681d476e47","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/pulls/16/commits","review_comments_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/pulls/16/comments","review_comment_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/issues/16/comments","statuses_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/statuses/af104ad817842651decd1d356e7a65056aa9db65","head":{"label":"PyLadiesBerlin:add-more-explanations","ref":"add-more-explanations","sha":"af104ad817842651decd1d356e7a65056aa9db65","user":{"login":"PyLadiesBerlin","id":6180453,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxODA0NTM=","avatar_url":"https://avatars2.githubusercontent.com/u/6180453?v=4","gravatar_id":"","url":"https://api.github.com/users/PyLadiesBerlin","html_url":"https://github.com/PyLadiesBerlin","followers_url":"https://api.github.com/users/PyLadiesBerlin/followers","following_url":"https://api.github.com/users/PyLadiesBerlin/following{/other_user}","gists_url":"https://api.github.com/users/PyLadiesBerlin/gists{/gist_id}","starred_url":"https://api.github.com/users/PyLadiesBerlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyLadiesBerlin/subscriptions","organizations_url":"https://api.github.com/users/PyLadiesBerlin/orgs","repos_url":"https://api.github.com/users/PyLadiesBerlin/repos","events_url":"https://api.github.com/users/PyLadiesBerlin/events{/privacy}","received_events_url":"https://api.github.com/users/PyLadiesBerlin/received_events","type":"Organization","site_admin":false},"repo":{"id":149511626,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk1MTE2MjY=","name":"python-beginners-workshop","full_name":"PyLadiesBerlin/python-beginners-workshop","private":false,"owner":{"login":"PyLadiesBerlin","id":6180453,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxODA0NTM=","avatar_url":"https://avatars2.githubusercontent.com/u/6180453?v=4","gravatar_id":"","url":"https://api.github.com/users/PyLadiesBerlin","html_url":"https://github.com/PyLadiesBerlin","followers_url":"https://api.github.com/users/PyLadiesBerlin/followers","following_url":"https://api.github.com/users/PyLadiesBerlin/following{/other_user}","gists_url":"https://api.github.com/users/PyLadiesBerlin/gists{/gist_id}","starred_url":"https://api.github.com/users/PyLadiesBerlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyLadiesBerlin/subscriptions","organizations_url":"https://api.github.com/users/PyLadiesBerlin/orgs","repos_url":"https://api.github.com/users/PyLadiesBerlin/repos","events_url":"https://api.github.com/users/PyLadiesBerlin/events{/privacy}","received_events_url":"https://api.github.com/users/PyLadiesBerlin/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/PyLadiesBerlin/python-beginners-workshop","description":"Covers basic python concepts with presentation and tasks to create a small adventure game","fork":false,"url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop","forks_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/forks","keys_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/teams","hooks_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/hooks","issue_events_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/issues/events{/number}","events_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/events","assignees_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/assignees{/user}","branches_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/branches{/branch}","tags_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/tags","blobs_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/git/refs{/sha}","trees_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/statuses/{sha}","languages_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/languages","stargazers_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/stargazers","contributors_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/contributors","subscribers_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/subscribers","subscription_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/subscription","commits_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/commits{/sha}","git_commits_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/git/commits{/sha}","comments_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/comments{/number}","issue_comment_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/issues/comments{/number}","contents_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/contents/{+path}","compare_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/merges","archive_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/downloads","issues_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/issues{/number}","pulls_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/pulls{/number}","milestones_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/milestones{/number}","notifications_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/labels{/name}","releases_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/releases{/id}","deployments_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/deployments","created_at":"2018-09-19T21:00:05Z","updated_at":"2018-10-20T15:25:43Z","pushed_at":"2018-10-22T21:03:12Z","git_url":"git://github.com/PyLadiesBerlin/python-beginners-workshop.git","ssh_url":"git@github.com:PyLadiesBerlin/python-beginners-workshop.git","clone_url":"https://github.com/PyLadiesBerlin/python-beginners-workshop.git","svn_url":"https://github.com/PyLadiesBerlin/python-beginners-workshop","homepage":null,"size":8050,"stargazers_count":3,"watchers_count":3,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":2,"open_issues":3,"watchers":3,"default_branch":"master"}},"base":{"label":"PyLadiesBerlin:master","ref":"master","sha":"db805cdbfe08e9deb3f08ef9fc98d2ebe2ad9391","user":{"login":"PyLadiesBerlin","id":6180453,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxODA0NTM=","avatar_url":"https://avatars2.githubusercontent.com/u/6180453?v=4","gravatar_id":"","url":"https://api.github.com/users/PyLadiesBerlin","html_url":"https://github.com/PyLadiesBerlin","followers_url":"https://api.github.com/users/PyLadiesBerlin/followers","following_url":"https://api.github.com/users/PyLadiesBerlin/following{/other_user}","gists_url":"https://api.github.com/users/PyLadiesBerlin/gists{/gist_id}","starred_url":"https://api.github.com/users/PyLadiesBerlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyLadiesBerlin/subscriptions","organizations_url":"https://api.github.com/users/PyLadiesBerlin/orgs","repos_url":"https://api.github.com/users/PyLadiesBerlin/repos","events_url":"https://api.github.com/users/PyLadiesBerlin/events{/privacy}","received_events_url":"https://api.github.com/users/PyLadiesBerlin/received_events","type":"Organization","site_admin":false},"repo":{"id":149511626,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk1MTE2MjY=","name":"python-beginners-workshop","full_name":"PyLadiesBerlin/python-beginners-workshop","private":false,"owner":{"login":"PyLadiesBerlin","id":6180453,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxODA0NTM=","avatar_url":"https://avatars2.githubusercontent.com/u/6180453?v=4","gravatar_id":"","url":"https://api.github.com/users/PyLadiesBerlin","html_url":"https://github.com/PyLadiesBerlin","followers_url":"https://api.github.com/users/PyLadiesBerlin/followers","following_url":"https://api.github.com/users/PyLadiesBerlin/following{/other_user}","gists_url":"https://api.github.com/users/PyLadiesBerlin/gists{/gist_id}","starred_url":"https://api.github.com/users/PyLadiesBerlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyLadiesBerlin/subscriptions","organizations_url":"https://api.github.com/users/PyLadiesBerlin/orgs","repos_url":"https://api.github.com/users/PyLadiesBerlin/repos","events_url":"https://api.github.com/users/PyLadiesBerlin/events{/privacy}","received_events_url":"https://api.github.com/users/PyLadiesBerlin/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/PyLadiesBerlin/python-beginners-workshop","description":"Covers basic python concepts with presentation and tasks to create a small adventure game","fork":false,"url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop","forks_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/forks","keys_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/teams","hooks_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/hooks","issue_events_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/issues/events{/number}","events_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/events","assignees_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/assignees{/user}","branches_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/branches{/branch}","tags_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/tags","blobs_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/git/refs{/sha}","trees_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/statuses/{sha}","languages_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/languages","stargazers_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/stargazers","contributors_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/contributors","subscribers_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/subscribers","subscription_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/subscription","commits_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/commits{/sha}","git_commits_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/git/commits{/sha}","comments_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/comments{/number}","issue_comment_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/issues/comments{/number}","contents_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/contents/{+path}","compare_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/merges","archive_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/downloads","issues_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/issues{/number}","pulls_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/pulls{/number}","milestones_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/milestones{/number}","notifications_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/labels{/name}","releases_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/releases{/id}","deployments_url":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/deployments","created_at":"2018-09-19T21:00:05Z","updated_at":"2018-10-20T15:25:43Z","pushed_at":"2018-10-22T21:03:12Z","git_url":"git://github.com/PyLadiesBerlin/python-beginners-workshop.git","ssh_url":"git@github.com:PyLadiesBerlin/python-beginners-workshop.git","clone_url":"https://github.com/PyLadiesBerlin/python-beginners-workshop.git","svn_url":"https://github.com/PyLadiesBerlin/python-beginners-workshop","homepage":null,"size":8050,"stargazers_count":3,"watchers_count":3,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":2,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/pulls/16"},"html":{"href":"https://github.com/PyLadiesBerlin/python-beginners-workshop/pull/16"},"issue":{"href":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/issues/16"},"comments":{"href":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/PyLadiesBerlin/python-beginners-workshop/statuses/af104ad817842651decd1d356e7a65056aa9db65"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"katyanna"}}