Artificial Intelligence (AI) & Machine Learning Course for Managers

 Enroll Now


22 / 52

Scala - Assessment - Variable Definitions

As part of this exercise, we will learn how to define variables.


Define an immutable integer variable my_imx with value 10

Define a mutable integer variable my_mutx with value 20

Let us define a variable of type String with the name myname and assign it a value "hi".