Questions tagged [cs50p]

Questions about CS50's Introduction to Programming with Python.

Filter by
Sorted by
Tagged with
0 votes
0 answers
6 views

ImageOps.fit not Resizing Properly

In PSet 6 for CS50x Python, we are tasked with resizing a shirt to fit on the wearer. My code successfully changes the size of the shirt per the instructions, but the end result is slightly off from ...
user avatar
0 votes
1 answer
31 views

Pset4 professor.py fails to pass one test with check50

My program for little professor problem passes all the tests with check50 except one that says : "expected program to reject input, but it did not". The program prompts the user for a level ...
user avatar
0 votes
2 answers
67 views

input of EOF halts program expected exit code 0, not 1

The following solution to the grocery problem in CS50P provided an output that was identical to the one requested in the CS50P Grocery List problem description. It works perfectly in all three Python ...
user avatar
  • 3
0 votes
1 answer
11 views

CS50P - One check keep failing in PSET2

def main(): user_input = input("Input: ") print(f"Output: {twttr(user_input)}") def twttr(user_input): vowels = ["a", "e", "i", "o&...
user avatar
0 votes
0 answers
48 views

CS50P PSet 5 Refueling Check50 Fails. What could i be doing wrong?

I have been having this check50 fail issue for a while now. I have rewritten my fuel.py multiple times and the test code too. But I can only get check50 to pass the "Expected exitcode" check ...
user avatar
0 votes
1 answer
38 views

Check50 cannot find target file

MXLinux 21. Latest updates on a state of the art intel machine. Everything else works without problems so far. I am not always able to check50 or submit50. I have been unable to predict which set of ...
user avatar
  • 3
0 votes
2 answers
346 views

CS50P PSET3 outdated.py

I can't seem to get passed PSET3 outdated.py. I get two errors when running the check50 command: :( input of " 9/8/1636 " outputs 1636-09-08 expected "1636-09-08", not "1636 -...
user avatar
0 votes
1 answer
165 views

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

I was wondering how to solve the last check on Lines of Code. Expected Output: 2058 Actual Output: Too few command-line arguments I recreated the file 2058.py with 2058 lines of code, and it worked. ...
user avatar
0 votes
1 answer
303 views

cs50p problemset 7 /working.py

mo code works fine and passes al teat in test_working.py but i dont know why i get this error :) working.py and test_working.py exist :) working.py does not import libraries other than sys and re :) ...
user avatar
0 votes
0 answers
63 views

CS50P PSET4: Little Professor timed out

I'm solving this problem. My code works when I test it but it is failing check50 with the error :( Little Professor accepts valid level // timed out while waiting for program to exit Here is my code: ...
user avatar
  • 1
0 votes
0 answers
38 views

CS50P - Week 8 - Object Oriented Programming - Problem faced with try-except block

I am currently on Week 8 Object Oriented Programming of CS50P This is with regards to an example given during the lecture at about 1:58:40, where we are suppose to use Try-Except to handle the ...
user avatar
0 votes
1 answer
575 views

I hope CS50 community can help why I got expected exit code 0, not 1

If I "return None" explicitly for exceptions in a regular .py file, when I do the test.py file, is it correct to test with a "assert function(argument) is None?" I did a pytest and ...
user avatar
  • 1
0 votes
1 answer
171 views

CS50P project6 shirt.py

question.. on CS50P project 6: shirt.py, I got an error message. I believe my error is on resizing the Moppest image but I don't know what else to do. I did what the instructions said but still having ...
user avatar
0 votes
2 answers
439 views

Why does my CS50P PSET4 Professor implementation fail check50?

For CS50P's Week 4 problem set Professor, my code appears to work fine when I test it, but check50 disagrees: :) professor.py exists :) Little Professor rejects level of 0 :) Little Professor rejects ...
user avatar
0 votes
1 answer
182 views

cs50p professor (can't check until a frown turns upside down)

in professor problem-set-4 i write the code completly right and my app runs without any problem but check50 gives an error to my code like: can't check until a frown turns upside down but my app ...
user avatar