Complex Data Types That Come with Your Language

Complex data types are usually classes. Some might be supplied by the language, while others are user defined. Complex data types have methods built in for working with the data, libraries that come with the language (potentially) and will vary from language to language on how they are stored and handled. The types of data…

Recursion in Python

We’ve seen examples of where one function calls another. For example inside of main, you see that load_data(), total(), and average() are called. Recursion is where a function, calls itself. As you can see, calling yourself is “easy” but also “dangerous”. You can easily end up in an infinite recursive loop, that is until you…