New answers tagged

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

You need not use the (tilde key) as the name ,just make it python.py and press enter.
Shiv S. Goswami's user avatar
1 vote
Accepted

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

When the question is asked again for the second or third time (after answering the first wrong) and is then answered correctly, it was not considered an attempt. In other words, the 'count' variable, ...
Yazkis's user avatar
  • 11
1 vote

CS50P - PSet 8 - Seaons of love - seasons.py

You should use date.today() //date object instead of datetime.today() classmethod and check50 will pick up.
Sumit Jaidka's user avatar
0 votes

PSET4 - Little Professor : Program seemingly working but fails some tests

import random import sys def main(): level = get_level() win = 0 for _ in range(10): x = generate_integer(level) y = generate_integer(level) win = play(x,y,win) ...
Sumit Jaidka's user avatar
1 vote
Accepted

pset4 adieu problem set 4

The Oxford comma. These two sentences are different (maybe it's easier to see without the "heading"): Adieu, adieu, to Liesl, Friedrich, Louisa, Kurt, Brigitta, Marta, and Gretl Adieu, adieu,...
DinoCoderSaurus's user avatar
0 votes

CS50P PSet 6 check50 problem for scourgify

lineterminator of csv module while writing to new csv file, 'lineterminator` defaulted to "\r\n", for test it should be "\r", csv module does it's own line handling
Subhan SA's user avatar
0 votes

Vanity plates Regex problem

The problem here is that regex which I gave you will not match if the input is all letters. You would need to make the regex more complicated for that, I had given it to you assuming you were ...
UpAndAdam's user avatar
  • 1,091
1 vote

Week 9 - Finance - Foreign Key Mismatch

Apparently I had a table hidden in my DB somehow. When I run .schema, I saw the following: sqlite> .schema CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, username TEXT NOT NULL, ...
Julia 's user avatar
  • 21
2 votes

Week 9 - Finance - Foreign Key Mismatch

It's not what you think. The body of a try block should contain the least amount of code to catch an error. This routine should have one try/except block for each of the executes (and only the execute ...
DinoCoderSaurus's user avatar
0 votes
Accepted

Vanity plates Problem

TLDR In summary your punctuation check should be carried out before the number check in isvalid and your number check is wrong aside from perhaps the s.isalpha() check. Details The problems. You ...
UpAndAdam's user avatar
  • 1,091

Top 50 recent answers are included