{"action":"created","comment":{"url":"https://api.github.com/repos/wm75/PM-21_2018/pulls/comments/193564855","pull_request_review_id":126562287,"id":193564855,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MzU2NDg1NQ==","diff_hunk":"@@ -1,26 +1,37 @@\n-# Perseus, Pegasus und Andromeda: eine Variante des Ziegenproblems\n-#\n-# siehe Seite 7 in:\n-# www.school-scout.de/vorschau/62770/mathematische-spiele-und-strategien-22012.pdf\n-\n import random\n \n-# set up the three caves\n caves = [1,2,3]\n-# initialize counters for the two possible outcomes\n counter_andromeda_in_original_cave = 0\n counter_andromeda_in_third_cave = 0\n \n+def kein_monster():\n+    monster_liste = [1,2,3]\n+    monster_liste.remove(random.choice(caves))\n+    return monster_liste\n+\n+def wahl_1(caves):\n+    wahl_1 = random.choice(caves)\n+    return wahl_1\n+\n+def tipp(monster_liste, wahl_1):\n+    if wahl_1 in monster_liste:\n+        x = 1\n+        tipp_liste = monster_liste[:]\n+        tipp_liste.remove(wahl_1)\n+        tipp = random.choice(tipp_liste)\n+    else:\n+        tipp = random.choice(monster_liste)\n+        x = 0\n+    return tipp, x\n+\n+\n+\n trials = 10000\n for trial in range(trials):\n-    # simulate and count outcomes\n-    # TO DO!!\n-    pass\n+    counter_andromeda_in_third_cave += tipp(kein_monster(),wahl_1(caves))[1]","path":"combinatorics_and_monte_carlo/perseus_aufgabe.py","position":41,"original_position":41,"commit_id":"7aa8615280c201b64503b2d6963cab13bd9fe6dd","original_commit_id":"7aa8615280c201b64503b2d6963cab13bd9fe6dd","user":{"login":"wm75","id":4742081,"node_id":"MDQ6VXNlcjQ3NDIwODE=","avatar_url":"https://avatars0.githubusercontent.com/u/4742081?v=4","gravatar_id":"","url":"https://api.github.com/users/wm75","html_url":"https://github.com/wm75","followers_url":"https://api.github.com/users/wm75/followers","following_url":"https://api.github.com/users/wm75/following{/other_user}","gists_url":"https://api.github.com/users/wm75/gists{/gist_id}","starred_url":"https://api.github.com/users/wm75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wm75/subscriptions","organizations_url":"https://api.github.com/users/wm75/orgs","repos_url":"https://api.github.com/users/wm75/repos","events_url":"https://api.github.com/users/wm75/events{/privacy}","received_events_url":"https://api.github.com/users/wm75/received_events","type":"User","site_admin":false},"body":"Genau. Im Prinzip brauchst Du den Tipp von Pegasus also nicht mal für die Statistik, Perseus braucht ihn allerdings, um sich umentscheiden zu können.\r\nSchau Dir zum Vergleich #29 (meine Musterlösung) und die kommentierte Version #25 an, bei der der Fehler ganz interessant ist.","created_at":"2018-06-06T21:27:37Z","updated_at":"2018-06-06T21:27:37Z","html_url":"https://github.com/wm75/PM-21_2018/pull/23#discussion_r193564855","pull_request_url":"https://api.github.com/repos/wm75/PM-21_2018/pulls/23","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/wm75/PM-21_2018/pulls/comments/193564855"},"html":{"href":"https://github.com/wm75/PM-21_2018/pull/23#discussion_r193564855"},"pull_request":{"href":"https://api.github.com/repos/wm75/PM-21_2018/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/wm75/PM-21_2018/pulls/23","id":192932944,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyOTMyOTQ0","html_url":"https://github.com/wm75/PM-21_2018/pull/23","diff_url":"https://github.com/wm75/PM-21_2018/pull/23.diff","patch_url":"https://github.com/wm75/PM-21_2018/pull/23.patch","issue_url":"https://api.github.com/repos/wm75/PM-21_2018/issues/23","number":23,"state":"open","locked":false,"title":"Update geburtstags_aufgabe.py","user":{"login":"brunobieberstein","id":38557310,"node_id":"MDQ6VXNlcjM4NTU3MzEw","avatar_url":"https://avatars3.githubusercontent.com/u/38557310?v=4","gravatar_id":"","url":"https://api.github.com/users/brunobieberstein","html_url":"https://github.com/brunobieberstein","followers_url":"https://api.github.com/users/brunobieberstein/followers","following_url":"https://api.github.com/users/brunobieberstein/following{/other_user}","gists_url":"https://api.github.com/users/brunobieberstein/gists{/gist_id}","starred_url":"https://api.github.com/users/brunobieberstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunobieberstein/subscriptions","organizations_url":"https://api.github.com/users/brunobieberstein/orgs","repos_url":"https://api.github.com/users/brunobieberstein/repos","events_url":"https://api.github.com/users/brunobieberstein/events{/privacy}","received_events_url":"https://api.github.com/users/brunobieberstein/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-06T08:13:38Z","updated_at":"2018-06-06T21:27:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e6c6309b2627079a60e1e5bb7c3eb0fdfeaac74f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wm75/PM-21_2018/pulls/23/commits","review_comments_url":"https://api.github.com/repos/wm75/PM-21_2018/pulls/23/comments","review_comment_url":"https://api.github.com/repos/wm75/PM-21_2018/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wm75/PM-21_2018/issues/23/comments","statuses_url":"https://api.github.com/repos/wm75/PM-21_2018/statuses/7aa8615280c201b64503b2d6963cab13bd9fe6dd","head":{"label":"brunobieberstein:patch-1","ref":"patch-1","sha":"7aa8615280c201b64503b2d6963cab13bd9fe6dd","user":{"login":"brunobieberstein","id":38557310,"node_id":"MDQ6VXNlcjM4NTU3MzEw","avatar_url":"https://avatars3.githubusercontent.com/u/38557310?v=4","gravatar_id":"","url":"https://api.github.com/users/brunobieberstein","html_url":"https://github.com/brunobieberstein","followers_url":"https://api.github.com/users/brunobieberstein/followers","following_url":"https://api.github.com/users/brunobieberstein/following{/other_user}","gists_url":"https://api.github.com/users/brunobieberstein/gists{/gist_id}","starred_url":"https://api.github.com/users/brunobieberstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunobieberstein/subscriptions","organizations_url":"https://api.github.com/users/brunobieberstein/orgs","repos_url":"https://api.github.com/users/brunobieberstein/repos","events_url":"https://api.github.com/users/brunobieberstein/events{/privacy}","received_events_url":"https://api.github.com/users/brunobieberstein/received_events","type":"User","site_admin":false},"repo":{"id":131262908,"node_id":"MDEwOlJlcG9zaXRvcnkxMzEyNjI5MDg=","name":"PM-21_2018","full_name":"brunobieberstein/PM-21_2018","owner":{"login":"brunobieberstein","id":38557310,"node_id":"MDQ6VXNlcjM4NTU3MzEw","avatar_url":"https://avatars3.githubusercontent.com/u/38557310?v=4","gravatar_id":"","url":"https://api.github.com/users/brunobieberstein","html_url":"https://github.com/brunobieberstein","followers_url":"https://api.github.com/users/brunobieberstein/followers","following_url":"https://api.github.com/users/brunobieberstein/following{/other_user}","gists_url":"https://api.github.com/users/brunobieberstein/gists{/gist_id}","starred_url":"https://api.github.com/users/brunobieberstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunobieberstein/subscriptions","organizations_url":"https://api.github.com/users/brunobieberstein/orgs","repos_url":"https://api.github.com/users/brunobieberstein/repos","events_url":"https://api.github.com/users/brunobieberstein/events{/privacy}","received_events_url":"https://api.github.com/users/brunobieberstein/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brunobieberstein/PM-21_2018","description":null,"fork":true,"url":"https://api.github.com/repos/brunobieberstein/PM-21_2018","forks_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/forks","keys_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/teams","hooks_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/hooks","issue_events_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/issues/events{/number}","events_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/events","assignees_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/assignees{/user}","branches_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/branches{/branch}","tags_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/tags","blobs_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/statuses/{sha}","languages_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/languages","stargazers_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/stargazers","contributors_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/contributors","subscribers_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/subscribers","subscription_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/subscription","commits_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/contents/{+path}","compare_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/merges","archive_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/downloads","issues_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/issues{/number}","pulls_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/pulls{/number}","milestones_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/milestones{/number}","notifications_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/labels{/name}","releases_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/releases{/id}","deployments_url":"https://api.github.com/repos/brunobieberstein/PM-21_2018/deployments","created_at":"2018-04-27T07:39:34Z","updated_at":"2018-05-22T20:19:09Z","pushed_at":"2018-06-06T09:46:16Z","git_url":"git://github.com/brunobieberstein/PM-21_2018.git","ssh_url":"git@github.com:brunobieberstein/PM-21_2018.git","clone_url":"https://github.com/brunobieberstein/PM-21_2018.git","svn_url":"https://github.com/brunobieberstein/PM-21_2018","homepage":null,"size":859,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wm75:master","ref":"master","sha":"bc7aa6f863a7e64690eeda2ce34223b024374060","user":{"login":"wm75","id":4742081,"node_id":"MDQ6VXNlcjQ3NDIwODE=","avatar_url":"https://avatars0.githubusercontent.com/u/4742081?v=4","gravatar_id":"","url":"https://api.github.com/users/wm75","html_url":"https://github.com/wm75","followers_url":"https://api.github.com/users/wm75/followers","following_url":"https://api.github.com/users/wm75/following{/other_user}","gists_url":"https://api.github.com/users/wm75/gists{/gist_id}","starred_url":"https://api.github.com/users/wm75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wm75/subscriptions","organizations_url":"https://api.github.com/users/wm75/orgs","repos_url":"https://api.github.com/users/wm75/repos","events_url":"https://api.github.com/users/wm75/events{/privacy}","received_events_url":"https://api.github.com/users/wm75/received_events","type":"User","site_admin":false},"repo":{"id":129411934,"node_id":"MDEwOlJlcG9zaXRvcnkxMjk0MTE5MzQ=","name":"PM-21_2018","full_name":"wm75/PM-21_2018","owner":{"login":"wm75","id":4742081,"node_id":"MDQ6VXNlcjQ3NDIwODE=","avatar_url":"https://avatars0.githubusercontent.com/u/4742081?v=4","gravatar_id":"","url":"https://api.github.com/users/wm75","html_url":"https://github.com/wm75","followers_url":"https://api.github.com/users/wm75/followers","following_url":"https://api.github.com/users/wm75/following{/other_user}","gists_url":"https://api.github.com/users/wm75/gists{/gist_id}","starred_url":"https://api.github.com/users/wm75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wm75/subscriptions","organizations_url":"https://api.github.com/users/wm75/orgs","repos_url":"https://api.github.com/users/wm75/repos","events_url":"https://api.github.com/users/wm75/events{/privacy}","received_events_url":"https://api.github.com/users/wm75/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wm75/PM-21_2018","description":null,"fork":false,"url":"https://api.github.com/repos/wm75/PM-21_2018","forks_url":"https://api.github.com/repos/wm75/PM-21_2018/forks","keys_url":"https://api.github.com/repos/wm75/PM-21_2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wm75/PM-21_2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wm75/PM-21_2018/teams","hooks_url":"https://api.github.com/repos/wm75/PM-21_2018/hooks","issue_events_url":"https://api.github.com/repos/wm75/PM-21_2018/issues/events{/number}","events_url":"https://api.github.com/repos/wm75/PM-21_2018/events","assignees_url":"https://api.github.com/repos/wm75/PM-21_2018/assignees{/user}","branches_url":"https://api.github.com/repos/wm75/PM-21_2018/branches{/branch}","tags_url":"https://api.github.com/repos/wm75/PM-21_2018/tags","blobs_url":"https://api.github.com/repos/wm75/PM-21_2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wm75/PM-21_2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wm75/PM-21_2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/wm75/PM-21_2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wm75/PM-21_2018/statuses/{sha}","languages_url":"https://api.github.com/repos/wm75/PM-21_2018/languages","stargazers_url":"https://api.github.com/repos/wm75/PM-21_2018/stargazers","contributors_url":"https://api.github.com/repos/wm75/PM-21_2018/contributors","subscribers_url":"https://api.github.com/repos/wm75/PM-21_2018/subscribers","subscription_url":"https://api.github.com/repos/wm75/PM-21_2018/subscription","commits_url":"https://api.github.com/repos/wm75/PM-21_2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/wm75/PM-21_2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/wm75/PM-21_2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/wm75/PM-21_2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/wm75/PM-21_2018/contents/{+path}","compare_url":"https://api.github.com/repos/wm75/PM-21_2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wm75/PM-21_2018/merges","archive_url":"https://api.github.com/repos/wm75/PM-21_2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wm75/PM-21_2018/downloads","issues_url":"https://api.github.com/repos/wm75/PM-21_2018/issues{/number}","pulls_url":"https://api.github.com/repos/wm75/PM-21_2018/pulls{/number}","milestones_url":"https://api.github.com/repos/wm75/PM-21_2018/milestones{/number}","notifications_url":"https://api.github.com/repos/wm75/PM-21_2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wm75/PM-21_2018/labels{/name}","releases_url":"https://api.github.com/repos/wm75/PM-21_2018/releases{/id}","deployments_url":"https://api.github.com/repos/wm75/PM-21_2018/deployments","created_at":"2018-04-13T14:15:56Z","updated_at":"2018-06-05T21:45:41Z","pushed_at":"2018-06-06T20:30:01Z","git_url":"git://github.com/wm75/PM-21_2018.git","ssh_url":"git@github.com:wm75/PM-21_2018.git","clone_url":"https://github.com/wm75/PM-21_2018.git","svn_url":"https://github.com/wm75/PM-21_2018","homepage":null,"size":854,"stargazers_count":3,"watchers_count":3,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":23,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":13,"open_issues":23,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wm75/PM-21_2018/pulls/23"},"html":{"href":"https://github.com/wm75/PM-21_2018/pull/23"},"issue":{"href":"https://api.github.com/repos/wm75/PM-21_2018/issues/23"},"comments":{"href":"https://api.github.com/repos/wm75/PM-21_2018/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/wm75/PM-21_2018/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/wm75/PM-21_2018/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wm75/PM-21_2018/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/wm75/PM-21_2018/statuses/7aa8615280c201b64503b2d6963cab13bd9fe6dd"}},"author_association":"NONE"}}
{"actor":{"display_login":"wm75"}}