The conversation between human and AI assistant.
[|Human|] Write pseudocode for a program to calculate the average of a list of numbers.
[|AI|] A possible pseudocode for a program that calculates the average of a list of numbers could be:
```
initialize sum to zero
initialize count to zero

for each number in the list:
    add the number to the sum
    increase the count by one

if count is not zero:
    average = sum divided by count
    print the average
else:
    print an error message "List is empty"
```
[|Human|] 
Write pseudocode for a program to calculate the average of a list of numbers.