Example of ListLiteral -> Saves time for you
example for ListLiteral
from python import Python
fn main() raises:
var Sample_list = ListLiteral("a", "b", "c", "d")
var element = Sample_list.get2, StringLiteral # 2 is the index , get the element at index 2
print (element)
print("Length of the list:", Sample_list.len()) # will print a value of 4 , get the list length
0 Replies