New answers tagged pset3
0
votes
The code allways prompt to enter a new date when entering the date. How to correct my code in order to have the right answer?
i changed the first main() function and i could output for this format eg. September 3, 2015 but for this format 12/12/1985, it allways prompt to enter the date again.
def main():
while True:
...
0
votes
The code allways prompt to enter a new date when entering the date. How to correct my code in order to have the right answer?
you have nothing to get you out of your outermost while True loop. you need to add a break statement somewhere when the success case is reached.
also instead of inserting a break into the if and else ...
Top 50 recent answers are included
Related Tags
pset3 × 1335game-of-fifteen × 167
find × 158
fifteen × 122
helpers × 99
breakout × 89
cs50x × 86
binary-search × 81
runoff × 72
check50 × 71
move × 71
tideman × 58
sort × 54
plurality × 54
resize × 51
search × 51
won × 41
recover × 40
c × 40
music × 40
bubble-sort × 33
segmentation-fault × 30
init × 26
error × 24
resize-less × 23