All Questions

Filter by
Sorted by
Tagged with
-1 votes
0 answers
14 views

Terminal cannot find the documents I just created

I am new to python. I created a folder on my windows laptop and subsequently a document ending in .py and saved it to Desktop using the sublime editor. Then, when I use the terminal and try to access ...
AndresA's user avatar
0 votes
1 answer
18 views

Minesweeper - :( add_knowledge cannot infer safe cells when given new information

I'm implementing Minesweeper AI add_knowledge funcion which I expanded with add_sentence function for recursion in inference. I've written tests to test my add_knowledge function and it seems to be ...
Maciej Zamojski's user avatar
1 vote
1 answer
7 views

submit50 not yielding results CS50AI : no results

Everything was working well on my system and I was able to submit the first exercise on week 0 and get some results back, however on the second exercise, tictactoe, submit50 yields no results(I have ...
melbel's user avatar
  • 21
0 votes
0 answers
9 views

Recovered Codespace outdated

It would seem an outdated version of my codespace got recovered. I was finishing up CS50’s Introduction to Programming with Python a bit over 3 months ago and only my final project needed some more ...
Lisa T's user avatar
  • 1
1 vote
2 answers
45 views

Fundamental issue to understand functions with python ===> Impact on all problems

I feel that this is a wrong question to ask because it is simply to wide, and as per my understanding, questions should always be very concise and precise. But I have a lingering issue on the notion ...
Elvino Michel's user avatar
0 votes
0 answers
30 views

PSet 9 check not working

Evening, I am getting the following error trying to run check on PSet9. I have downloaded a new empty version tested that and get the same error. I'm thinking this is a fault on the CS50 side but if ...
faarn's user avatar
  • 13
0 votes
2 answers
54 views

Pset 3: Grocery list, the program ends after one item is inputted

I am trying to do the "Grocery" problem, and I have many issues. First, the program exits after the first input. Second, I have an issue with associating the counted item with the list. My ...
Elvino Michel's user avatar
0 votes
2 answers
17 views

PS5: Vanity Plates : Expected exit code 0, not 1 while testing

After using check50 on my test_plates.py file, I get the following error and it doesn't further check anything ( "can't check until a frown turns upside down"): Cause expected exit code 0, ...
theparanormal22's user avatar
0 votes
2 answers
51 views

PSet 9 Sell handles valid sale expected to find "56.00" in page

Like others I have become stuck with the above error, although the site seems to display the correct info, any help would be appreciated: Python Flask Code: @app.route("/") @login_required ...
faarn's user avatar
  • 13
0 votes
0 answers
8 views

Tideman: Is my thinking correct for sort_pairs and lock_pairs?

I have just finished tideman and passed all checks on check50. However, I wanted to check if my thinking for my code is on the right track, or I got here just by luck. Firstly, for sort pairs, this is ...
Seanie's user avatar
  • 1
0 votes
2 answers
20 views

Felipe's Taqueria: output check problem

This is my code for the Felipe Taqueria's problem and the output is as expected but I am required to output "Total" before the prompt "Enter your order" but I am unable. Someone ...
Grace 's user avatar
  • 25
0 votes
1 answer
17 views

pset 2 readability problem help

In my program, the wordCount isn't always accurate and I can't for the life of me figure out why the phrase "lets go for a run.I like daffodils" in this order equals 7 words, when it's ...
Alan Shenoy's user avatar
3 votes
2 answers
37 views

Why can you say the name of an array is a pointer to the first element of the array in C?

I have tried to understand why you can say the name of an array is a pointer to its first element in C. Could you please tell me if my understanding below is correct? Both the name of an array and the ...
Yuya Ito's user avatar
0 votes
0 answers
29 views

cs50 dna pset 6 - i dont get why my code always return no match

this is my code. whenever i run this code it always returns no match. i cant seem to get the error. pls help me. import csv import sys def main(): # TODO: Check for command-line usage if ...
dhan8293's user avatar
0 votes
2 answers
32 views

PSET 5 - Speller: Compiles locally, check50 says it doesn't

I know this is one of the most frequently asked questions here, since I' ve spent more than an hour reading posts by people that faced similar problems. But still, I can't tell what's going on in my ...
Stavros Marinos's user avatar
0 votes
2 answers
46 views

Inifinite loop for outdated problem

I am working on the "outdated" problem. I need to reformat the output given by the user in order to adehere to the ISO format. My code is as follows: months = ["January", "...
Elvino Michel's user avatar
-1 votes
1 answer
26 views

Error: format specifies type 'char *' but the argument has type 'char **' [-Wformat]

I am learning C and I am stuck on this, probably because I am dumb but idk #include <stdio.h> int main() { char name[25]; int age; printf("whats your ...
OMAB2infinity's user avatar
1 vote
1 answer
10 views

pset1 cash compiles but gives unexpected outputs

I'm having trouble figuring out why I'm getting the outputs that I am. I tried to write a function that I can re-use for each denomination of coin, not sure if the problem is there or somewhere else. ...
if_indeed's user avatar
0 votes
1 answer
15 views

Week 9 birthdays HTML validator error when using jinja

Error: Misplaced non-space characters inside a table. {% for birthday in birthdays %}↩ When I comment the jinja part outside the table data then it is fine. Should this just be ignored. <head> ...
RARob's user avatar
  • 1
1 vote
1 answer
28 views

Felipe’s Taqueria: "invalid decimal literal" with f string, but ok without f string. Why?

I am still on "Felipe’s Taqueria" problem, and I do not understand why I get the : "invalid decimal literal" error. My code to print the result is as follwos: print(f"$ { &...
Elvino Michel's user avatar
0 votes
2 answers
39 views

CS50x: Issue on problem Felipe´s Taqueria, program keeps asking me for input, without printing price, why?

I am trying to execute the problem "Felipe´s Taqueria", but I am failing to see any price printed as output. Instead the program keeps asking for input. When I input "Taco", the ...
Elvino Michel's user avatar
0 votes
0 answers
8 views

Problem in World Cup lab 6 with the variable N?

for some reason when i increase the no of N my code just doesn't work and check50 returns errors in men's world cup and women's world cup. Pls help me # Simulate a sports tournament import csv import ...
dhan8293's user avatar
0 votes
1 answer
19 views

Week1 Cash problem scoping issue? Cents not updating

I have been trying to solve the cash problem but i think i'm running into problems with scoping between prototype, main and function updating the cents variable. I have tried a variety of variations ...
Berry6400's user avatar
0 votes
0 answers
11 views

question about using copyrighted materials in a scratch project

I'm new to CS50X and I've just finished the very first lecture "Scratch". I'd like to submit a Scratch project, but something concerns me: Do I have to pay to use copyrighted materials? &...
user avatar
0 votes
1 answer
36 views

Check 50 insists test with pytest is exiting with code 2, in pset 5 for intro to python, how do I fix this?

it's my first post and I have no idea what I'm doing, so go easy. I'm having issues with the first problem in pset 5 of intro to python, testing my twttr. Basically I made some very basic unit tests ...
TheOtherJohn's user avatar
0 votes
1 answer
18 views

Can someone help me understand why we multiply the quarters by 25

// Subtract the value of those quarters from cents cents = cents - (quarters * 25);
Victoria's user avatar
-2 votes
1 answer
24 views

I am so so so new to this and I want to learn, I know my question dumb but I cant see why my code is returning, can you guys help me pls? Thank you! [closed]

I am so so so new to this and I want to learn, I know my question dumb but I cant see why my code is returning, can you guys help me pls? Thank you!
lance dante's user avatar
0 votes
0 answers
29 views

problem with speller problem set 5 code

well i have a problem with speller problem set 5 code. For some reason check50 returns everything wrong but when i debug it seems fine. I don't really know what the problem with my code is. This is my ...
dhan8293's user avatar
1 vote
1 answer
28 views

Problem Set 4 - Recover (timed out while waiting for program to exit)

After spending almost a week working on the code for the Recover exercise, I have finally made it work. However, when I check with check50, I get the error: :( program is free of memory errors timed ...
Stavros Marinos's user avatar
0 votes
1 answer
9 views

scrabble pset: not handling non letter charcters even after iteration with isalpha

hi please the my scrabble pset is not handling non letter characters correctly even after i iterate over every character and con constantly checking if the character is a letter or not with alpha but ...
IsaacChrist Ikpe's user avatar
2 votes
2 answers
33 views

How to properly free memory in the following W3Schools c programming code demonstrating Queue Implementation using Linked Lists

I am taking CS50x I am currently on week 5 DataStructures. I am also in the process of going through the W3Schools tutorial on DataStructures for extra practice and to get a better understanding of ...
Dallas Vienneau's user avatar
0 votes
0 answers
38 views

CS50p - PSet4 - Adieu - Exit code 1

So, I have supposedly finished my code for the Adieu exercise from Problem Set 4. I tested all of the inputs that check50 uses and I get the right feedback from my code. However, when I run check50 it ...
PquePC's user avatar
  • 1
0 votes
0 answers
26 views

Problems configuring desktop visual studio code to use check50

I have followed these instructions for using ssh to log in to gitHub in an attempt to get check50 and submit50 working in my desktop VS Code. After completing all instructions, I get the following, ...
MrC's user avatar
  • 1
0 votes
1 answer
81 views

CS50 PSET 9 Finance "sell handles valid sale: expected to find "56.00" in page, but it wasn't found"

I already looked through every post I could find on this topic but nothing seemed to work for me yet. I have tried to recreate the error by: creating a new account, buying 4 shares of 'AAAA', then ...
scrypter's user avatar
0 votes
1 answer
32 views

my Pset 2 Readability is getting the wrong grade level

What am I doing wrong?! When I check my code with check50, I get this: :( handles questions in passage expected "Grade 2\n", not "Grade 3\n" So far, I haven't been able to fix ...
OnAnd17's user avatar
0 votes
0 answers
21 views

Scratch Problem I can;t able to find Out my problem

Please Somebody help me Why Sprite of Ball is not working when condition hits . When ande touches the ball the ball should to initial position but it is not working
DevloperOso's user avatar
0 votes
1 answer
137 views

CS50P Little Professor error expected "9", not "level: 6 + 6 =..."

When doing check50 I get the error ":( Little Professor displays number of problems correct ". I've found this post where the code works but after comparing it with my own code I still can't ...
Yazkis's user avatar
  • 11
0 votes
1 answer
11 views

pset5 - seg fault when using large dictionaries or texts

I've been stuck on speller for a few days now, and recently I've gotten the program to completely pass check50. However, when I try to run it manually on my own, I find that the program works fine ...
Edward's user avatar
  • 3
-1 votes
1 answer
48 views

pset4 adieu problem set 4

I am having trouble with the check50. On manual check, the code functions exactly as it is suppose to but on check50 I get the following error codes. :) adieu.py exists Log checking that adieu.py ...
Marilyn's user avatar
0 votes
1 answer
24 views

Vanity plates Regex problem

I have this code using regex as follows, but when all my characters are letters it gives out an output of "invalid" whereas it should not: import re def main(): plate = input("...
Grace 's user avatar
  • 25
0 votes
1 answer
62 views

problem set 4, CS50P , Guessing Game ,

running python3 testing.py... sending input 22... sending input 18... checking for output "Too large!"... my code couldn't pass the guessing game test, the test is sending 22 as a number ...
Subhan SA's user avatar
1 vote
2 answers
46 views

Week 9 - Finance - Foreign Key Mismatch

I'm trying to solve this issue for a week and nothing works! in my /buy route, I cannot update the users table with updated cash after a "buy" order is submitted. Here is an example of what ...
Julia 's user avatar
  • 21
1 vote
1 answer
143 views

Vanity plates Problem

The following code is my code for the vanity plates problem in cs50 introduction to python course. My issue is on the "Punctuation Function". When I enter an input with a punctuation, ...
Grace 's user avatar
  • 25
0 votes
2 answers
17 views

Why is my code not compiling (simple get_int example)?

I just started this course. I think I am copying exact code from David and in his screen it works but not in mine. What's the issue?. actual code: #include<cs50.h> #include<stdio.h> int ...
DevloperOso's user avatar
0 votes
1 answer
10 views

Why aree these being counted as undeclared identifiers when I clearly declared them?

Basically, I understand all the basics for up to lecture 2 of the CS50 course (at least I think so) but I never really fully grasped what 'return' does so I was just sort of playing around with it. I ...
MuTE's user avatar
  • 1
0 votes
1 answer
15 views

Problem set 2, substitution -> I don't get why check50 shows that my output is incorrect

#include <cs50.h> #include <ctype.h> #include <math.h> #include <stdio.h> #include <string.h> string cipherText(string key, string text); bool checkKey(string key); int ...
NawafBRQ's user avatar
1 vote
1 answer
15 views

Filter-more edge blue channel

When I run check 50 I get the red green channels correct but no matter what I do the blue channel comes out with seemingly random values what am I missing here? void edges(int height, int width, ...
Tiler99uu's user avatar
0 votes
1 answer
21 views

What's marking procedure?

I have a question, suppose I am doing a problem set of week 1 CS50P. On one question, I couldn't solve it completely, I have tried to build logic but, ofcourse, it didn't gave the output (but I put ...
Swayam Jha's user avatar
0 votes
1 answer
12 views

Problem set 2 - substitution - key validation issue

My code validates mainly 3 things for the key. Key is composed of alphabets only Key length is 26 Irrespective of case, key contains only one alphabet once But still one of the validation criterion ...
Athi's user avatar
  • 1
0 votes
0 answers
17 views

My cs50 prset2 caesar project rfused to compile,

My cs50 pset2 caesar project refused to compile, what could be the problem. Says can't run until frown turn upside down.
Donald Udofia's user avatar

15 30 50 per page
1
2 3 4 5
272