A function is a piece of code that can be used to represent and modify a larger block of code. Programmers regularly use functions in order to make their codes more efficient and easy to manage. Functions work by encapsulating large blocks of code and then inserting variable statements into specific parts of the block of code so that a programmer can alter an entire block of code with just the Function code. Unit Five covered lists and dictionaries and their place within Python. A list is a structure of data that can be hidden, altered, or reordered. Much as the name suggests it is typically a list of items, that may range from words to numbers to animals. Each separate piece of data in a list has an assigned number value beginning with 0 and increasing by 1. Items within lists are accessed by their assigned number. Dictionaries are much like lists except they are not put into any order and their items are accessed with specific
A function is a piece of code that can be used to represent and modify a larger block of code. Programmers regularly use functions in order to make their codes more efficient and easy to manage. Functions work by encapsulating large blocks of code and then inserting variable statements into specific parts of the block of code so that a programmer can alter an entire block of code with just the Function code. Unit Five covered lists and dictionaries and their place within Python. A list is a structure of data that can be hidden, altered, or reordered. Much as the name suggests it is typically a list of items, that may range from words to numbers to animals. Each separate piece of data in a list has an assigned number value beginning with 0 and increasing by 1. Items within lists are accessed by their assigned number. Dictionaries are much like lists except they are not put into any order and their items are accessed with specific