product price on list.phtml - magento2


Hello,how we can get the price for simple and configurable product on list.phtml?

If we try:

We get the correct price but how we get the price with and without tax
from a simple and configurable product? Which 2 line codes we need to


$productPriceWithTax = samplecode ;
$productPriceWithOutTax = samplecode ;

Hope someone can help…