Hey Harikeeshan,
I was thinking, how about we could create together (getting help of this amazing community) a list of simple code samples. For example:
Generate a list of 100 random integer number (between 1 and 1000) and then get the last element of this list?
import random
# Create a list of 100 integers
up_to = 1000
my_list = [random.randint(item, up_to) for item in range(100)]
# Get the last element of the lhis list
my_list[-1]
# Creates a list of 100 integers
const numbersUpTo = 1000;
let myList = new Array(100);
myList = myList.fill(0).map(() => Math.floor(Math.random() * numbersUpTo));
# Get the last element of the lhis list
myList[myList.length -1]
In this way, people could get a comparative view and each one could decide. I do you thing?
Cheers