user
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.

### Instruction:
Write a function in Python that takes an array and prints the largest number

### Input:
array = [1, 3, 10, 4]

### Response:
assistant
def print_largest_number(array):
  largest = array[0]
  for i in array:
    if i > largest:
      largest = i
  print(largest)
  
print_largest_number(array)