From 9f661b7872662bc54f11534b90f879f601d6209e Mon Sep 17 00:00:00 2001 From: AYEBAZIBWE ISHMAEL Date: Sun, 2 Jun 2024 16:45:08 +0300 Subject: [PATCH] Update guided-project.md On line 111 and 113 the os is already import and given substitute of getenv so there is no need of os.getenv() Changes made: I deleted os. from 111 and 113 --- module2-consuming-data-from-an-api/guided-project.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module2-consuming-data-from-an-api/guided-project.md b/module2-consuming-data-from-an-api/guided-project.md index 1a10c783..3be01d52 100644 --- a/module2-consuming-data-from-an-api/guided-project.md +++ b/module2-consuming-data-from-an-api/guided-project.md @@ -108,9 +108,9 @@ Import the function that we'll use to retrieve our environment varaibles from th Retrieve our API Key and API Secret and save them to variables within our REPL. -`>>> key = os.getenv('TWITTER_API_KEY')` +`>>> key = getenv('TWITTER_API_KEY')` -`>>> secret = os.getenv('TWITTER_API_KEY_SECRET')` +`>>> secret = getenv('TWITTER_API_KEY_SECRET')` Import not_tweepy so that we can use it to connect to the NotTwitter API.