Assignment1.py
def option1(people):
    '''
    Option one of the main function. Will aquire a library card number (LCN) and validate it. Upon Validation 
    Will ask the user for a book name and a branch name. Once given LCN, book name, and branch the function will
    append (write) the information seperated by '#' to the end of the text file consisting of books read.

    Para:
            people: dictionary

    Returns:
            None
    '''
    lcn = input('Card number: ')
    while validateLcn(lcn, people) == False:
        lcn = input('Invalid library card number. Card number: ')
    book = input('Book title: ')
    branch = input('Library branch: ')
    
    with open('booksRead.txt', 'a') as f:
        f.write('\n')
        f.write(('{}#{}#{}').format(branch, lcn, book))
    print('Record added successfully.')
    return

    Option one of the main function. Will aquire a library card number (LCN) and validate it. Upon Validation 
    Will ask the user for a book name and a branch name. Once given LCN, book name, and branch the function will
    append (write) the information seperated by '#' to the end of the text file consisting of books read.

    Para:
            people: dictionary

    Returns:
            None
    
Option one of the main function. Will aquire a library card number (LCN) and validate it. Upon Validation
Will ask the user for a book name and a branch name. Once given LCN, book name, and branch the function will
append (write) the information seperated by '#' to the end of the text file consisting of books read.

dictionary
Option one of the main function . Will aquire a library card number ( LCN ) and validate it . Upon Validation Will ask the user for a book name and a branch name . Once given LCN book name and branch the function will append ( write ) the information seperated by ' # ' to the end of the text file consisting of books read . dictionary
def option1(people):
    lcn = input('Card number: ')
    while validateLcn(lcn, people) == False:
        lcn = input('Invalid library card number. Card number: ')
    book = input('Book title: ')
    branch = input('Library branch: ')
    with open('booksRead.txt', 'a') as f:
        f.write('\n')
        f.write(('{}#{}#{}').format(branch, lcn, book))
    print('Record added successfully.')
    return
def option1 ( people ) : lcn = input ( 'Card number: ' ) while validateLcn ( lcn , people ) == False : lcn = input ( 'Invalid library card number. Card number: ' ) book = input ( 'Book title: ' ) branch = input ( 'Library branch: ' ) with open ( 'booksRead.txt' , 'a' ) as f : f . write ( '\n' ) f . write ( ( '{}#{}#{}' ) . format ( branch , lcn , book ) ) print ( 'Record added successfully.' ) return
Option one of the main function.
Option one of the main function .
'''
    Option one of the main function. Will aquire a library card number (LCN) and validate it. Upon Validation 
    Will ask the user for a book name and a branch name. Once given LCN, book name, and branch the function will
    append (write) the information seperated by '#' to the end of the text file consisting of books read.

    Para:
            people: dictionary

    Returns:
            None
    '''
None
people