Write a Python program that takes a list of integers and prints the largest and smallest numbers in the list.
user
```python
nums = [3, 6, 9, 12, 15, 18]

# Find the largest number
largest = max(nums)

# Find the smallest number
smallest = min(nums)

# Print the results
print('Largest number:', largest)
print('Smallest number:', smallest)```
assistant