Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Results tagged with cs50p
Search options questions only
not deleted
user 40802
Questions about CS50's Introduction to Programming with Python.
0
votes
2
answers
424
views
question in CS50P course on lines.py
I have this assignment:
"In a file called lines.py, implement a program that expects exactly one command-line argument, the name (or path) of a Python file, and outputs the number of lines of code in …
0
votes
1
answer
102
views
CS50P Little Professor error
please what is the problem with this code and why is it displaying this particular error?
:( Little Professor displays number of problems correct
expected "9", not "Level : 6 + 6 ..."
import random
d …
0
votes
0
answers
15
views
What could be a pytest file for this program?
I have written this program as my final project. How would I write a pytest file to assure the program is properly tested. It really confused me since the functions I implemented in the program do NOT …
1
vote
1
answer
198
views
pizza.py unclear problem when submitting
from tabulate import tabulate
import sys
import os
if len(sys.argv) < 2:
sys.exit("Too few Command-line argument")
elif len(sys.argv) > 2 :
sys.exit("Too many Command-line argument" …
0
votes
1
answer
140
views
scourgify.py problem
I wrote this code for scourgify.py :-
import sys
import csv
import os
if len(sys.argv) < 3:
sys.exit("Too few Command-line argument")
elif len(sys.argv) > 3 :
sys.exit("Too many Comm …
1
vote
1
answer
278
views
test_plates.py problem
What is the problem with my code for testing plates.py?
this is the code :
def main():
plate = input("Plate: ")
if iss_valid(plate):
print("Valid")
else:
print("Invalid")
…
0
votes
0
answers
40
views
Cs50 Final Project
I currently finished all Weeks and have the final project left. I am planning to start with it very soon, I have two questions :-
Will i be able to redo the project if I get a grade that is less than …