This file is for medium article to show difference between dynamic and static type systems.
# Example Python Code
a = 10
b = 17
c = 2.7
c = a
def add(a, b, c):
return (a + b + c)
// Example Scala Code
val a: Int = 10
val b = 17 // Type inference automatically detect type
val c: Float = 2.7
def add(a: Int, b: Int, c: Float): Float = {
a + b + C
}