class UserProfile:
    def __init__(self, name, age):
        self.name = name
        self.age = age
    
    # Define a method to display a greeting
    def display_greeting(self):
        if self.age < 18:
            print(f"Hello, {self.name}! You are a minor.")
        else:
            print(f"Hello, {self.name}! You are {self.age} years old.")

	# Method: display_greeting is a method (a function inside the class) that uses self to access name and age.
	# Condition: The if statement checks if the user is a minor (age < 18) and adjusts the greeting message accordingly.
	# Print Statement: Here, we use print to show the greeting directly.

# Creating instances of UserProfile
user1 = UserProfile("Nitheesh", 30)
user2 = UserProfile("Munya", 14)

# Calling methods on each instance
user1.display_greeting()  
user2.display_greeting()  
