As per my knowledge, there is no concept of array in python. It will be list only and list is declared by using the [ ] brackets. If list contains same type of data elements can be considered as an array. List can contain different type of data elements.
Both the functions gives same output
str(18) '18'
repr(18) '18'
What differences these two functions have in term of functionality and in whic scenarios these two functions are used ?