How to make the return value of python function be added in a loop

v=0
def a():
    z=0
    z+=random.randint(0,9)
    return z
while v<5:
    print(a())
    v+=1

how to add the return value of function a z loop 5 times

Mar.06,2021

sum (a () for i in range (5)

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb532e-253a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb532e-253a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?