Recently, while I was working on a Python script, I had a list of string elements and I needed to check if any element of that list was also used as a key in some dictionary. In this article, I will show you two solutions for this problem. One will simply use iteration of a for loop, while the other will use Python sets.
With Python, it is a really easy to retrieve the data from 3rd party API services, so I made a script for this purpose. The script worked without any issue for many different API URLs, but recently, when I wanted to load the server content response from a specific API URL into
json.loads method, it threw an "Unexpected UTF-8 BOM" error. In this article, we will examine what the error means and various ways to solve it.
When I first decided to try Python months ago, the first obstacle I had to overcome was to figure out how to set it all on Windows. You install a Python on Windows, but then what. How do you create projects and run scripts? And that is the focus of this article. We will first install Python and then an editor from which we will make our Python code. Next, we will create a Python project and in it make a simple script and finally, we will examine how to install 3rd party packages.