I have to confess; I have had traumatic experiences with variant data type in my beginning as a software developer,…