Creating A Script To Generate A List Of Dictionaries

<p>Welcome Back To Another Learning Adventure!</p> <p>Today My Project Is On The Smaller Side. I Will Be Navigating How I Would Create A Python Script That Generates A List Of Dictionaries About Files That Are In My Dictionaries.</p> <p>I&rsquo;ll Be Using One Of My Favorite AWS Services Cloud 9, &amp; Then Pushing My Code To Github.</p> <p>GitHub Link:&nbsp;<a href="https://tinyurl.com/5n85dfnj" rel="noopener ugc nofollow" target="_blank">https://tinyurl.com/5n85dfnj</a></p> <p>So First Things First I&rsquo;m Going To Log Into My AWS Account, Go To Cloud9 &amp; Then Open My Environment. I&rsquo;m Going To Use&nbsp;<code>import os</code>&nbsp;To Enable Interaction With The Files &amp; Directories On My Operating System.</p> <p>In Order To Work With The Files In My Current Directory &amp; Not All The Directories On My OS, I&rsquo;m Using<code>os.getcwd()</code>&nbsp;&amp; Then Storing It In The<strong>&nbsp;cwd</strong>&nbsp;Variable To Be Able To Implement It In Different Parts Of My Script.</p> <p>Now I Can Store The List Of My Files In The&nbsp;<strong>files</strong>&nbsp;Variable For The Current Directory I&rsquo;m In, With&nbsp;<code>os.listdir(cwd)</code>&nbsp;. So It&rsquo;s The List Of Files &rdquo;os.listdir&rdquo; In My Current Working Directory(cwd).</p> <p>I&rsquo;m Creating An Empty List To Store My Directories&nbsp;<code>file_list = []</code>&nbsp;.</p> <p>I&rsquo;ll Iterate Through My Files&nbsp;<code>for files in files:</code>&nbsp;, Create An Empty Dictionary For The Files Being Iterated Through&nbsp;<code>file_dict = {}</code>&nbsp;, &amp; Then Specify What Information I Want From The Files.</p> <p><a href="https://medium.com/@roriebri/creating-a-script-to-generate-a-list-of-dictionaries-e77cb15ca7e1"><strong>Click Here</strong></a></p>