NiloCK
0
Q:

google search

so so so, you have the problem as I do ... searching "google" in google itself
LMAO
2
Why you searching google on google?
1
ya google is your bf 
1
Did you just google google?!?!?!?!
0
Google huh? cool
0
Why don't use bing?
0
def approve():
    myfile = open("New_customer_request.txt","r")
    info2 = str(input("Please enter a new user ID from request:"))
    for line in myfile:
        line = line.rstrip()
        if(info2 in line):
            print(line)
            approve_reject = int(input("Please select your decision. Type '0' to approve, type'1' to reject the customer registration.\n"))
            if(approve_reject == 0):
                print("Approved.")
                with open("New_customer_request.txt","r") as myfile:
                    with open("REG_customer_request.txt","w") as myfile2:
                        with open("New_user.txt","r") as user:
                            with open("REG_user.txt","w") as user1: 
                                for line in myfile:
                                    line = line.rstrip()
                                    if(info2 in line):
                                        myfile2.write(line)
                                        myfile2.close()
                                        for line in user:
                                            line = line.rstrip()
                                            if(info2 in line):
                                                user1.write(line)
                                                user1.close()
                myfile.close()
                myfile2.close()
            elif(approve_reject == 1):        
                print("Rejected.")
                break
                approve()
            else:
                print("Fail to approve or reject, kindly choose your decision again.")
                approve()
              #  REG_user.txt","r
    myfile2.close()
    myfile.close()
0

New to Communities?

Join the community