download
```<!--/**
* GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann
* (http://qbnz.com/highlighter/ and http://geshi.org/)
*/
.python  {font-family:monospace;color: #000066;}
.python a:link {color: #000060;}
.python a:hover {background-color: #f0f000;}
.python .head {font-family: Verdana, Arial, sans-serif; color: #808080; font-size: 70%; font-weight: bold;  padding: 2px;}
.python .imp {font-weight: bold; color: red;}
.python .kw1 {color: #ff7700;font-weight:bold;}
.python .kw2 {color: #008000;}
.python .kw3 {color: #dc143c;}
.python .kw4 {color: #0000cd;}
.python .co1 {color: #808080; font-style: italic;}
.python .coMULTI {color: #808080; font-style: italic;}
.python .es0 {color: #000099; font-weight: bold;}
.python .br0 {color: black;}
.python .sy0 {color: #66cc66;}
.python .st0 {color: #483d8b;}
.python .nu0 {color: #ff4500;}
.python .me1 {color: black;}
.python span.xtra { display:block; }
.ln, .ln{ vertical-align: top; }
.coMULTI, .python span{ line-height:13px !important;}
-->#A Python code that generates 7 random numbers between the range(1,20) and finds the average of those numbers #import libraryfrom numpy import random#Generate 7 random numbersnum1 = random.randint(1,20)print("The first random number is: ", num1)num2 = random.randint(1,20)print("The second random number is: ", num2)num3 = random.randint(1,20)print("The third random number is: ", num3)num4 = random.randint(1,20)print("The fourth random number is: ", num4)num5 = random.randint(1,20)print("The fifth random number is: ", num5)num6 = random.randint(1,20)print("The sixth random number is: ", num6)num7 = random.randint(1,20)print("The seventh random number is: ", num7)#Find the average of those 7 numberssumNums = num1 + num2 + num3 + num4 + num5 + num6 + num7Total = sumNumsprint("The average of the seven numbers is: ", Total/7) #Program exits   ```
Success #stdin #stdout 0.22s 26948KB
stdin
`Standard input is empty`
stdout
```The first random number is:  3
The second random number is:  8
The third random number is:  3
The fourth random number is:  1
The fifth random number is:  1
The sixth random number is:  1
The seventh random number is:  11
The average of the seven numbers is:  4.0
```