I'm creating a pennies game, which has now already been created in C++, however I am having some trouble converting it to Python. It seems I can't figure out how to convert something such as this loop into Python.
void penniesLeftOver(int amountOfPenniesCurrent) //Displays the amount of Pennies left to the user.
{
cout << "Pennies Remaining: " << amountOfPenniesCurrent; //Displays the amount of Pennies remaining.
for (int i = 0; i < amountOfPenniesCurrent; i++)
{
cout << " o"; //Uses "o" to represent a Penny.
}
cout << "\n" << endl; //Starts a new line.
}
print( n*"o" ).forandrangeyet?