By default, Magento comes with product attribute functionality for the different product types.
While you creating product attributes from the Magento admin panel, Stores -> Attributes -> Product
You have to create a new attribute as per your product requirement and while you go to the Storefront Properties tab from the attribute page, you will able to see two different fields for the attribute called,