-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharrays.py
More file actions
14 lines (8 loc) · 12.4 KB
/
Copy patharrays.py
File metadata and controls
14 lines (8 loc) · 12.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
#Write a program to create an array with the following elements - [1, 3, 5, 3, 7, 9, 3]. Then find the number of occurrences of number 3 in the array. Also, print the reversed array.
import array as arr
array_or = arr.array('i',[1,3,5,7,9,3,6,3,5,4,5,2,3,6,2,3,4,2,3,4,5,3,3,3,7,5,4,5,6,6,4,3,3,2,6,5,7,6,65,43,2,13,1,431,12,34,4,45,4,51,3,5,7,9,3,6,3,5,4,5,2,3,6,2,3,4,2,3,4,5,3,3,3,7,5,4,5,6,6,4,3,3,2,6,5,7,6,65,43,2,13,1,431,12,34,4,45,4,51,3,5,7,9,3,6,3,5,4,5,2,3,6,2,3,4,2,3,4,5,3,3,3,7,5,4,5,6,6,4,3,3,2,6,5,7,6,65,43,2,13,1,431,12,34,4,45,4,51,3,5,7,9,3,6,3,5,4,5,2,3,6,2,3,4,2,3,4,5,3,3,3,7,5,4,5,6,6,4,3,3,2,6,5,7,6,65,43,2,13,1,431,12,34,4,45,4,51,3,5,7,9,3,6,3,5,4,5,2,3,6,2,3,4,2,3,4,5,3,3,3,7,5,4,5,6,6,4,3,3,2,6,5,7,6,65,43,2,13,1,431,12,34,4,45,4,51,3,5,7,9,3,6,3,5,4,5,2,3,6,2,3,4,2,3,4,5,3,3,3,7,5,4,5,6,6,4,3,3,2,6,5,7,6,65,43,2,13,1,431,12,34,4,45,4,51,3,5,7,9,3,6,3,5,4,5,2,3,6,2,3,4,2,3,4,5,3,3,3,7,5,4,5,6,6,4,3,3,2,6,5,7,6,65,43,2,13,1,431,12,34,4,45,4,51,3,5,7,9,3,6,3,5,4,5,2,3,6,2,3,4,2,3,4,5,3,3,3,7,5,4,5,6,6,4,3,3,2,6,5,7,6,65,43,2,13,1,431,12,34,4,45,4,51,3,5,7,9,3,6,3,5,4,5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,6,4,3,3,2,6,5,7,6,65,43,2,13,1,431,12,34,4,45,4,51,3,5,7,9,3,6,3,5,4,5,2,3,6,2,3,4,2,3,4,5,3,3,3,7,5,4,5,6,6,4,3,3,2,6,5,7,6,65,43,2,13,1,431,12,34,4,45,4,51,3,5,7,9,3,6,3,5,4])
count_3 = array_or.count(3)
reversed_array = array_or[::-1]
print("\noriginal array is ",array_or)
print("\nThe reversed array is ",reversed_array)
print("\nThe number of time 3 has occured is ",count_3)