the error it returns is:
NameError: name \'lives\' is not defined
I know the code isn\'t as efficient as possible, this is one of my first
You didn't declare lives to be global inside main(), so it is local to that function.
lives
main()
def main(): global guess, rand_num, lives ...