#A Python code that generates 7 random numbers between the range(1,20) and finds the average of those numbers
#import library
from numpy import random
#Generate 7 random numbers
num1 = 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 numbers
sumNums = num1 + num2 + num3 + num4 + num5 + num6 + num7
Total = sumNums
print ( "The average of the seven numbers is: " , Total/7 )
#Program exits
I0EgUHl0aG9uIGNvZGUgdGhhdCBnZW5lcmF0ZXMgNyByYW5kb20gbnVtYmVycyBiZXR3ZWVuIHRoZSByYW5nZSgxLDIwKSBhbmQgZmluZHMgdGhlIGF2ZXJhZ2Ugb2YgdGhvc2UgbnVtYmVycwoKI2ltcG9ydCBsaWJyYXJ5CmZyb20gbnVtcHkgaW1wb3J0IHJhbmRvbQojR2VuZXJhdGUgNyByYW5kb20gbnVtYmVycwpudW0xID0gcmFuZG9tLnJhbmRpbnQoMSwyMCkKcHJpbnQoIlRoZSBmaXJzdCByYW5kb20gbnVtYmVyIGlzOiAiLCBudW0xKQpudW0yID0gcmFuZG9tLnJhbmRpbnQoMSwyMCkKcHJpbnQoIlRoZSBzZWNvbmQgcmFuZG9tIG51bWJlciBpczogIiwgbnVtMikKbnVtMyA9IHJhbmRvbS5yYW5kaW50KDEsMjApCnByaW50KCJUaGUgdGhpcmQgcmFuZG9tIG51bWJlciBpczogIiwgbnVtMykKbnVtNCA9IHJhbmRvbS5yYW5kaW50KDEsMjApCnByaW50KCJUaGUgZm91cnRoIHJhbmRvbSBudW1iZXIgaXM6ICIsIG51bTQpCm51bTUgPSByYW5kb20ucmFuZGludCgxLDIwKQpwcmludC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