#! /usr/bin/env python3.2 import platform # Let the user know what version of Python is executing the script. pythonVersion = platform.python_version_tuple() print("Running script {0} using Python Version: {1}.{2}.{3}".format(__file__, pythonVersion[0],pythonVersion[1],pythonVersion[2])) print("") itemList = ["apple", "bananna", "blueberry", "coconut"] print("Before: {0}".format(itemList)) for item in itemList: if(item.startswith("b")): itemList.remove(item) # Print list print("After: {0}".format(itemList))