os:This module provides a portable way of using operating system dependent functionality. sys:This module provides access to some variables used or maintained by the interpreter and to functions that interact strongly with the interpreter. platform:T…