Questions tagged [greedy.py]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
280 views

Pset6 - Greedy to python - while loop not restarting && float issues

As Zamyla states in this video a do while C loop can be translated to this python pseudo-code where an invalid input will re-prompt the user. While True: # prompt user if condition: ...
0
votes
1answer
802 views

Pset 6 greedy.py help please!

I'm trying to write greedy in Python rather than in C, but am unsure why my code isn't working. It only works if I input an amount of change that can be returned in one type of coin only (i.e. 3.00 ...