I am using Selenium to automate a browser task through a Python script.
There is a text-box in my browser that I need to fill with info, but the XPath is formatted as below:

//*[@id="NameInputId14514271346457986"]

The problem is that: everytime the number before the Id (14514271346457986) changes. Is there a way to refer to this XPath something like:

//*[@id.start-with="NameInputId"]

Sorry if it is a dumb question - I started to using Selenium this week and I couldn't find this info on documentation.
Sure, you can use xpath like //*[contains(@id,"NameInputId")] but I guess this possibly will not be an unique locator. In this case the xpath should be more complex to contain additional attributes or some parent element
Reference to XPath - is it possible?