I have a program in which I'm supposed to create a list of 5 numbers and then compare these items to see if they are all the same. I am supposed to compare the numbers of the list and then return a Boolean if it is true or not. (I'm relatively new to programming and am only allowed to use the random Library and the regular library). If anyone could point me in the right direction, I'd really appreciate it.
I've tried things such as
if aList[0] = aList[1] and aList [2] and... aList[4]:
Return = True.
Thanks!