From fcd5d808f5ea3d0b55f9d8a9b3487411d65b3d60 Mon Sep 17 00:00:00 2001 From: Tomas Rohovsky Date: Sun, 5 Nov 2017 16:51:54 +0100 Subject: [PATCH] Fix avg_connections result in introduction. --- code-python3/introduction.py | 2 +- code/introduction.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code-python3/introduction.py b/code-python3/introduction.py index 0ab30cba..4869aea5 100644 --- a/code-python3/introduction.py +++ b/code-python3/introduction.py @@ -44,7 +44,7 @@ def number_of_friends(user): for user in users) # 24 num_users = len(users) -avg_connections = total_connections / num_users # 2.4 +avg_connections = total_connections / num_users # 2.18 ################################ # # diff --git a/code/introduction.py b/code/introduction.py index 87ce7435..f01fb8cb 100644 --- a/code/introduction.py +++ b/code/introduction.py @@ -46,7 +46,7 @@ def number_of_friends(user): for user in users) # 24 num_users = len(users) -avg_connections = total_connections / num_users # 2.4 +avg_connections = total_connections / num_users # 2.18 ################################ # #