Magento 2 Create Product Programmatically

As we discussed in our previous blog that there are several ways to get products same way there are several ways to create products programmatically in the Magento 2. We can use Repository to create or save products but it sometimes creates an issue of override store based values of the attributes so today we are not saving product by Repository but instead, we will save it by ProductFactory.