into the variable username now that we've recovered the usernamewe can welcome them back vwelcome backericwe need to combine these two programs into one file when someone runs remember_me pywe want to retrieve their username from memory if possiblethereforewe'll start with try block that attempts to recover the username if the file username json doesn' existwe'll have the except block prompt for username and store it in username json for next timeremember_ me py import json load the usernameif it has been stored previously otherwiseprompt for the username and store it filename 'username jsontryu with open(filenameas f_objv username json load(f_objw except filenotfounderrorx username input("what is your name" with open(filename' 'as f_objjson dump(usernamef_objprint("we'll remember you when you come backusername "!"elseprint("welcome backusername "!"there' no new code hereblocks of code from the last two examples are just combined into one file at we try to open the file username json if this file existswe read the username back into memory and print message welcoming back the user in the else block if this is the first time the user runs the programusername json won' exist and filenotfounderror will occur python will move on to the except block where we prompt the user to enter their username we then use json dump(to store the username and print greeting whichever block executesthe result is username and an appropriate greeting if this is the first time the program runsthis is the outputwhat is your nameeric we'll remember you when you come backericotherwisewelcome backericthis is the output you see if the program was already run at least once files and exceptions