Changes

Jump to: navigation, search

OPS435 Python Lab 4

1 byte removed, 12:00, 19 May 2017
Investigation 2 - Strings
= INVESTIGATION 1 - DATA STRUCTURES =
== Part PART 1 - Tuple ==
A Python Tuple is a number of immutable Python values. This is similar to a list in a lot of ways, except that, you cannot change the values inside.
<pre>
</pre>
== Part PART 2 - Set ==
Sets are another very similar structure to lists, they can also be modified and changed, unlike the tuple. But sets have two unique characteristics, they are unordered, and they cannot have duplicate values. The unordered part provides a added performance from hashing the values, but also means we cannot pull out a specific value at a spefici position. Any duplicate entries will immediately be deleted. Sets however are great tools for doing comparisons, finding differences in multiple sets, or finding similarities. The best part about sets are, they are fast!
</pre>
== Part PART 3 - Dictionary ==
== PART 4 - List Comprehension ==
</pre>
= Investigation 2 - Strings : STRINGS =
Strings are in their most basic form a list of characters, or a bit of text. Strings store text so that we can use them later. In this section we will cover more than just displaying that text to the screen. Here, we will go over cutting strings into sub-strings, joining strings together, searching through strings, and matching strings against patterns.
13,420
edits

Navigation menu