Write a program to initialize an array with any 10 numbers and create the numbers in the odd position
Answers
Answered by
0
arr = [A, B,C, D, E,F, G,H,I,J]
print("These elements are at odd position in the array: ")
for i in range(0, len(arr), 2):
print(arr[i])
These elements are at odd position in the array:
A
C
E
G
I
Similar questions
Physics,
3 months ago
Math,
3 months ago
Science,
6 months ago
Science,
6 months ago
Computer Science,
11 months ago
Psychology,
11 months ago
English,
11 months ago