/**
 * You are helping a dancer learn some new moves. Given a dictionary that contains dance moves as keys
 * and their respective beat counts as values, complete the code to print out each dance move and its beat
 * count using a while loop.
 *
 * @param stepsDict A dictionary containing dance moves as keys and their respective beat counts as values.
 */
fun dancerMoves(stepsDict: Map<String, Int>) {

    // Get all the dance moves from the dictionary
    val danceMoves = stepsDict.keys.toList()

    // Get the number of dance moves
    val numMoves = danceMoves.size

    // Initialize the counter variable
    var i = 0

    // Iterate over all dance moves using a while loop
    while (i < numMoves) {
        // Get the current dance move
        val currentMove = danceMoves[i]

        // Get the beat count for the current dance move
        val beatCount = stepsDict[currentMove]

        // Print the dance move and its beat count
        println("Dance move: $currentMove, Beat count: $beatCount")

        // Increment the counter variable
        i++
    }
}
/**
 * You are helping a dancer learn some new moves. Given a dictionary that contains dance moves as keys
 * and their respective beat counts as values, complete the code to print out each dance move and its beat
 * count using a while loop.
 *
 * @param stepsDict A dictionary containing dance moves as keys and their respective beat counts as values.
 */
fun dancerMoves(stepsDict: Map<String, Int>) {
/**
 * You are helping a dancer learn some new moves. Given a dictionary that contains dance moves as keys
 * and their respective beat counts as values, complete the code to print out each dance move and its beat
 * count using a while loop.
 *
 * @param stepsDict A dictionary containing dance moves as keys and their respective beat counts as values.
 */
fun dancerMoves(stepsDict: Map<String, Int>) {

    // Get all the dance moves from the dictionary
    val danceMoves = stepsDict.keys.toList()

    // Get the number of dance moves
    val numMoves = danceMoves.size

    // Initialize the counter variable
    var i = 0

    // Iterate over all dance moves using a while loop
    while (i < numMoves) {
        // Get the current dance move
        val currentMove = danceMoves[i]

        // Get the beat count for the current dance move
        val beatCount = stepsDict[currentMove]

        // Print the dance move and its beat count
        println("Dance move: $currentMove, Beat count: $beatCount")

        // Increment the counter variable
        i++
    }
}