How to create a null vector of size 10 with the fifth value as 1?

I am seeking help from the community to find alternative ways to create a null vector of size 10 in Python, with the fifth value as 1. A null vector refers to a vector where all the elements are zero. This can be achieved in Python by using the NumPy library. The NumPy function zeros() can be used to create a null vector of the desired size, and the desired element can be set to 1 using indexing. However, I am interested in finding out if there are other efficient ways to achieve this task using different Python libraries or techniques. For example: