Flash Sale: Flat 70% + Addl. 25% Off on all Courses | Use Coupon DS25 in Checkout | Offer Expires In

  Enroll Now

Scala - Assessment - Variable Definitions

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

  • Define an immutable (using val) integer variable my_imx with value 10.

  • Define a mutable (using var) 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".

  • Press "Shift + Enter" to execute the code in the Jupyter notebook.

  • Click on "Submit Answer".

No hints are availble for this assesment

Answer is not availble for this assesment

Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...