Blockchain Design Principles

Based on the course Introduction to blockchain Technologies by Insead and Don Tapscott / Alex Tapscott on Coursera Principle 1 : Networked integrity Honesty, consideration, accountability, transparency are coded into the blockchain. Integrity is distributed among nodes, not vested in …

Case study

We will use the data from the world bank. It contains data on world economies for over half a century. The indicators are : Population Electricity consumption CO2 emissions Literacy rates Unemployment Mortality rates Dictionaries for data science+ Writing a …

List comprehensions

Populate a list with a for loop : We can do that in only one line with a list comprehension ! Now a list comprehension with range() : List comprehensions : Collapse for loops for building lists into a single …

Using iterators in PythonLand

We can iterate over a list using a for loop We can iterate over a string using a for loop We can iterate over a range object using a for loop Iterators vs iterables : Iterable : Examples : lists, …

Building presentations

Source : Slide Heroes BCG Case Study Top down, Catchy pitchy title -> Explanation sentence -> Content The start Drivers Who ? Why are we speaking to our audience (identify their question) Why? What is our answer to our audience’s question …

Lambda functions

There is a quicker way to write functions: lambdas ! So basically you specify the variables in input, and then the operation which is performed et.. voila ! You can also write anonymous functions : Function map takes two arguments: …

Writing your own functions

There is a ton of built in functions such as str(), type() and so one and so forth. But you can as well define your own functions You can also define parameters for your functions. In the example below value …