New answers tagged

0 votes

Why does my CS50P PSET4 Professor implementation fail check50?

I had the same problem. Issue is in this line of code: return random.randint(10 ** (n - 1), 10**n - 1) the feedback from check50 is that you failed 'At Level 1, Little Professor generates addition ...
user avatar
0 votes

CS50P PSET3 outdated.py

The input " 9/8/1636 " contains the (trailing) space and the program does not account for that, therefore it is in the output as entered. "other than a missing comma." is a good ...
user avatar
0 votes

When I type python ~~.py, the output on the terminal is just "Python", not the ones that I wanted it to be printed out

im dont program in python but i do know that in order to compile your python you have to be in the same folder as the python file. go to the same directory and then run it.
user avatar
1 vote

PS6 Lines Of Code :( lines.py yields 2058 given 2058 lines of code in an open-source library file

Any line in the input file that is all spaces will give an IndexError here in testLines function lines = [s for s in lines if s.lstrip()[0] != "#"] and will take the except branch and ...
user avatar
0 votes

CS50P project6 shirt.py

The size of the shirt I get when running the size method returns (600, 600), your sizes appear to be off
user avatar
  • 1

Top 50 recent answers are included