I'm currently using string formatting in my code however I find that I'm hard coding to display repeated variables. Is there a more efficient way to do this
print("Hello this is {} and {} and {} - Hello this is {} and {} and {} ".format(versionP, versionS, versionT, versionP, versionS, versionT))
The outcome is the one I want but I need to repeat this in several instances and can become tedious. Is there a way to only write the variable once?