how to make a function work in python
Question: I wrote the following code in python and it works fine until I try to make it
a function, can anyone help?

    
    
    import random
    def club():
        members=int(input("members"))
    print (random.randint(1, members))
    


Answer: You have to use 4 spaces ( or tab) per indentation level. And call the
function of course.

    
    
    import random
    def club():
        members=int(input("members"))
        print (random.randint(1, members))
    
    club()
    

