im having trouble writing this python program but every solution i find involves numpy and f printing. is there a way to

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

im having trouble writing this python program but every solution i find involves numpy and f printing. is there a way to

Post by answerhappygod »

im having trouble writing this python program but every solution
i find involves numpy and f printing. is there a way to do this
without it
program below
I
l
V
Write a program that picks 500 random numbers between 0 and 99,
and then display the number of occurrences of each number.
Also print any numbers that do not occur in the program.
The program output should look similar to:
NUMBER OCCURRENCES
0
5
1
2
2
5
3
4
4
6
5
3
6
4
7
5
8
4
9
6
10
4
11
2
12
9
13
10
14
6
15
5
16
1
17
4
18
8
19
2
20
2
21
1
22
6
23
4
24
4
25
8
26
4
27
3
28
3
29
7
30
4
31
2
32
6
33
4
34
5
35
6
36
1
37
4
38
3
39
5
40
4
41
0
42
4
43
4
44
4
45
4
46
12
47
3
48
4
49
7
50
5
51
4
52
2
53
4
54
8
55
11
56
5
57
5
58
8
59
4
60
11
61
7
62
2
63
6
64
4
65
5
66
7
67
5
68
8
69
4
70
7
71
5
72
5
73
5
74
6
75
11
76
9
77
2
78
5
79
7
80
11
81
4
82
5
83
2
84
3
85
7
86
5
87
6
88
7
89
3
90
4
91
4
92
4
93
9
94
5
95
3
96
2
97
5
98
6
99
5
The number 41 does not occur
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply