Def Main Try File Open Users Raele Onedrive Documents College Da 202 Chargeaccountstxt Lis Q37284441

I need a pseudocode for this code

def main try: in file-open (/Users/raele/OneDrive/Documents/College/DA 202/charge_accounts.txt,) list-file士] for line in in

def main try: in file-open (“/Users/raele/OneDrive/Documents/College/DA 202/charge_accounts.txt,) list-file士] for line in in file: line-line. rstrip (“n”) list file.append (1ine) #Enter the account number to be validated accountNumber-input (“Enter the account number to be validated:”) if accountNumber in list file: ##print if account number is valid print (“Account number”, accountNumber, “is valid”) else: #print is account number is not valid print (“Account Number”, accountNumber, “is valid”) in file.close() #print error if file not found except IOError: print (“The file could

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.