python religion code example

Example: python religion

# Religion as a python function:

# Use Case:
psych_problems = ['anxiety', 'depression', 'stress', 'shame']
phys_problems = ['obesity', 'high blood pressure', 'pain']

def my_religion(problems):
    religion = [] # note- religion is defined only within the function
    for problem in problems:
        religion.append(problem)
    return(f'my relgion helps me with all my problems: {religion}')
  
# calling the function:
my_religion(psych_problems)
____
"my relgion helps me with all my problems: ['anxiety', 'depression', 'stress', 'shame']"
  
my_religion(phys_problems)
____
"my relgion helps me with all my problems: ['obesity', 'high blood pressure', 'pain']"