ks-materials/notebooks/Types.ipynb
2024-08-06 09:38:15 +03:00

3.9 KiB

In [2]:
2+2
Out[2]:
4
In [3]:
val a: Int = 2
In [4]:
val listOfInt: MutableList<Int> = ArrayList()

for(i in (0 until 10)){
    listOfInt.add(i)
}

listOfInt
Out[4]:
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
In [5]:
listOfInt.add(11)
Out[5]:
true
In [6]:
listOfInt
Out[6]:
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11]
In [9]:
%use plotly
In [8]:
Plotly.plot {
    scatter {
        x(1,2,3)
        y(1,2,3)
     }
}
Out[8]:
In [ ]: