/**
 * This exercise requires you to iterate over a list of people and perform certain actions based on their age and nationality
 */
fun loopOverPeople(people: List<Person>) {

    // Initialize a counter for the number of people processed
    var count = 0
    
    // Iterate over each person in the given list
    while (count < people.size) {
        // Retrieve the person at the current position
        val person = people[count]
        
        // Fill in the missing parts of the code to complete the exercise
        
        // Check if the person is older than 30 years old
        if (person.age > 30) {
            // Replace "null" with the appropriate code to print a message indicating a person is older than 30
            println("${person.name} is older than 30 years old.")
        }
        
        // Check if the person is from France
        if (person.nationality == "France") {
            // Replace "null" with the appropriate code to print a message indicating a person is from France
            println("${person.name} is from France.")
        }
        
        // Move on to the next person
        count++
    }
}

// Example usage of the function
class Person(val name: String, val age: Int, val nationality: String)
/**
 * This exercise requires you to iterate over a list of people and perform certain actions based on their age and nationality
 */
fun loopOverPeople(people: List<Person>) {
/**
 * This exercise requires you to iterate over a list of people and perform certain actions based on their age and nationality
 */
fun loopOverPeople(people: List<Person>) {

    // Initialize a counter for the number of people processed
    var count = 0
    
    // Iterate over each person in the given list
    while (count < people.size) {
        // Retrieve the person at the current position
        val person = people[count]
        
        // Fill in the missing parts of the code to complete the exercise
        
        // Check if the person is older than 30 years old
        if (person.age > 30) {
            // Replace "null" with the appropriate code to print a message indicating a person is older than 30
            println("${person.name} is older than 30 years old.")
        }
        
        // Check if the person is from France
        if (person.nationality == "France") {
            // Replace "null" with the appropriate code to print a message indicating a person is from France
            println("${person.name} is from France.")
        }
        
        // Move on to the next person
        count++
    }
}

// Example usage of the function
class Person(val name: String, val age: Int, val nationality: String)