#!/bin/py

import re

def defineBlockDevice():
    """ Prompt user to define block device """
    while True:
        try:
            blockdevice = str(raw_input('Enter the letter of the block device you want to wipe: '))
            if not re.match("^[a-z]$", blockdevice):
                raise ValueError()
            return blockdevice
        except ValueError:
            print 'Sorry, that\'s not a valid block device. Please try again.'

def appendBlockDevice(): 
    """ Append user-defined block device to /dev/sd """ 
    letter = defineBlockDevice()
    return '/dev/sd' + letter

# blockdevice = blockdevice + "a"
appendBlockDevice()



@@ -593,42 +593,8 @@
 er%0A%0A
-# blockdevice = blockdevice + %22a%22%0A
 appe

remove redundant appendage