human
print values for specified columns.
assistant
Here is a Python program to print values for specified columns

import pandas as pd

def print_values_for_specified_columns(df, columns):
  """Prints values for specified columns."""
  for column in columns:
    print((df[column]))

# Enter the dataframe
df = pd.DataFrame({'a': [1, 2, 3], 'b': [4, 5, 6], 'c': [7, 8, 9]})

# Calling the function
print((print_values_for_specified_columns(df, ['a', 'b'])))

#Example Output
# 0    1
# 1    2
# 2    3
# Name: a, dtype: int64
# 0    4
# 1    5
# 2    6
# Name: b, dtype: int64
# None

#Remember to inspect code for bugs.