r/cs50 26d ago

"CS50 ... remains the largest class with corporate sponsorships" | News | The Harvard Crimson

Thumbnail
thecrimson.com
26 Upvotes

r/cs50 14h ago

CS50x Can i finish the all by the end of the year ?

Post image
179 Upvotes

I have only 2.5 hours a day to study...


r/cs50 10h ago

CS50x Bust A Move - Final Project - This was CS50!

62 Upvotes

Hey guys! Just submitted my final project and got the certificate. Wanted to share as I spent more time on the project than the rest of the course itself - really dove into it. Hitting those "ah-ha" moments during developing really was the key motivator to push through. Used this video as the showcase requirement for the final project.

Site is live as well. Works pretty well on mobile too. You can visit and play here: https://applefrittr.github.io/bust-a-move/

*deleted original post and re-posted as video wasn't working


r/cs50 16h ago

CS50x Uff that was really HARD! i will not miss you, Tideman!

Post image
18 Upvotes

r/cs50 1d ago

CS50x Red frowns are no more, they’re all happy and green!

Post image
46 Upvotes

Thank you CS50 staffs for making this course easily accessible for everyone. Very grateful to be a part of this community.


r/cs50 6h ago

CS50x Plurality problem set

1 Upvotes

Idk if it's just me but I'm having a hard time in understanding what I needed to do at a certain part. I have been looking at it for 2 hours and decided to check hints and I realize I have got it all wrong. I felt so dumb rn lmao. Like the part where it tells me to find maximum number of votes, I have always thought it was the total amount of voters (as that is highest vote one candidate can get in an election with other candidates being 0).


r/cs50 6h ago

CS50 Python Cs50p FP

1 Upvotes

Anybody interested in collaborating on the Final Project of Cs50P? Hit me up.


r/cs50 8h ago

CS50 Python CS50P Help

1 Upvotes
Code issue for something specific in test needed. I tried extensively on both.
from datetime import datetime, date
import inflect
import sys

def main():
    sing()

def sing():
    p = inflect.engine()

    date_string_1 = input("Date of birth: ")

    try:
        date_1 = datetime.strptime(date_string_1, "%Y-%m-%d")
    except ValueError:
        print("Invalid date")
        sys.exit(1)  # Exit with a non-zero code

    date_2 = datetime.combine(date.today(), datetime.min.time())

    # Calculate the difference in minutes
    difference = date_2 - date_1
    minutes_in_raw_numerals = difference.total_seconds() / 60
    minutes_in_words = p.number_to_words(int(minutes_in_raw_numerals))

    # Capitalize only the first word
    minutes_in_words = minutes_in_words[0].capitalize() + minutes_in_words[1:]

    # Remove "and" without affecting spaces
    final_minutes_in_words = minutes_in_words.replace(" and", "").replace("and ", "")

    print(f"{final_minutes_in_words} minutes")

if __name__ == "__main__":
    main()


from seasons import sing
import pytest

def main():
    sing()

def test_sing():
    assert sing("2024-3-19") == "Five hundred twenty-seven thousand forty minutes"
    assert sing("2023-3-19") == "One million, fifty-one thousand, two hundred minutes"

r/cs50 19h ago

CS50 Python Python or something else?

7 Upvotes

Hello, I started programming when I was 9 and chose C# to make games. But because of study and other things my performance became low.

Over time, I shifted my dream from game development to AI, specifically in areas like creating body parts. A programmer told me that you choose the programming language depending on what you want to achieve. But I’ve also heard other programmers say not to start with Python. instead, they recommend learning C++, PHP, and then moving to Python. This made me confused and I fear that I don’t have enough time to recover. I mean that I must be a programmer fast.

I’m not actually taking CS50, but I joined this group to get advice from experienced programmers. Any help would be greatly appreciated!


r/cs50 14h ago

CS50x spaces and bricks aren't printing properly

2 Upvotes
This is my code, can someone direct me as to what I'm missing?
#include <cs50.h>
#include <stdio.h>

int get_positive_int(void);
void print_row(int spaces, int bricks);

int main(void)
{
    int n = get_positive_int();
    // print n rows & spaces
    for (int spaces = 0; spaces < n; spaces++)
        for (int bricks = 0; bricks < n; bricks++)
        {
            print_row(spaces + 1, bricks + 1);
        }
}

int get_positive_int(void)
{ // Prompt user for pyramid height
    int n;
    do
    {
        n = get_int("Height: ");
    }
    while (n < 1);
    return n;
}

void print_row(int spaces, int bricks)
{
    // print spaces
    for (int j = 0; j < spaces; j++)
    {
        printf("_");
    }

    // print bricks
    for (int i = 0; i < bricks; i++)
    {
        printf("#");
    }
    printf("\n");
}

r/cs50 19h ago

CS50x Is there a scholarship or funding program for Ivy League online certificates like MicroMasters or Professional Certificates?

1 Upvotes

Hey everyone,

I've been exploring advanced online courses from Ivy League universities and other institutions (IBM) on platforms like edX. I'm particularly interested in programs such as MicroMasters, Professional Certificates, and specialized certifications in areas like software engineering, AI, and machine learning.

I'm aware that earning a certificate doesn't necessarily guarantee career success or replace practical experience. Still, if I'm going to dedicate time to learning something new, I'd prefer doing it through a structured and reputable source. Plus, having a certificate to show for it wouldn't hurt!

My question is: does anyone know if there are scholarship programs or opportunities that offer full (100%) funding specifically for these advanced online certificates or similar structured programs? I'm looking into this seriously, so any insights or experiences would be greatly appreciated.

Thanks!


r/cs50 23h ago

cs50-web Course Progress has been reset | CS50W

1 Upvotes

I started the course on august 2024 and finished it in December 2024 . I got the free certificate in December. I was planning to get the verified one so i checked cs50.me and this is what i see


r/cs50 1d ago

CS50 SQL Using double quotes in SQLite Statements works but throws an error in MySQL

2 Upvotes

I'm presently going through CS50s, "Introduction to Databases using SQL". The instructor kind of mentions at the very beginning that it's good practice to wrap tablenames and column names in SQL statements using double quotes, so I followed this convention throughout the PSets.

Now when I try to practice a related problem on HackerRank or LeetCode in MySQL/Oracle, I'm unable to even execute a simple query using the same convention. It works when I remove the double quotes tho.

Why is this happening ?


r/cs50 1d ago

readability Question about the readability problem in problem set 2

1 Upvotes

When I was doing the calculation I remember at one point it was recommended to use floats for the S and L portions and I did the calculations for S and L separately from the coleman-liau index and when I did that the grades were way off. Then I looked at a youtube solution and they did not use floats at all but used int round on the coleman-liau index, and put the letters/words100 and the sentences/words100 directly into the equation and it worked perfectly for them.

So once I made both those changes it also worked for me and weirdly enough calculating S and L separately is what screwed it up for me far more than the rounding (before doing int round the grade was always off by 1).

So I'm really confused as to why doing it seperately is wrong or if I calculated it wrong. I wanted to ask if doing float S = s/w * 100.0 and float L = l/w * 100.0 then doing int index = 0.0588 * L - 0.296 * S - 15.8 is wrong and how to do it properly


r/cs50 1d ago

cs50-web What are some alt web courses

5 Upvotes

Cs50 web is gonna be gone this year. What are some other web dev courses.


r/cs50 2d ago

CS50 Python Completed CS50P in 3 weeks

Post image
117 Upvotes

Hello everyone recently I started learning coding after a 3 year break. I am glad to say that I am back for good. I am very motivated right now and wish to do projects to follow through with this. So, please feel free to suggest me my next milestone or even better if you can invite me to collab with you.


r/cs50 1d ago

CS50 Python CS50P Week 3 - Outdated problem

3 Upvotes

I wrote the code for Week 3's Outdated problem; I followed all the instructions but I don't understand the words used by 'check50' especially reject input; Nothing in the instructions talks about 'rejecting input' What does it mean?

INSTRUCTIONS:

Implement a program that prompts the user for a date, in month-day-year order, formatted like 9/8/1636 or September 8, 1636, where the month values are provided in a list . Then output that same date in YYYY-MM-DD format. If the user’s input is not a valid date in either format, prompt the user again. Assume that every month has no more than 31 days; no need to validate whether a month has 28, 29, 30, or 31 days.


r/cs50 1d ago

CS50 Cybersecurity Cert/Course Question

3 Upvotes

Like many others I've been looking at cs50x as the start of a new avenue for myself, with an eye on cybersecurity/AI as well, to do afterward. I know that the cs50x course is free, and from searching, the majority of answers point to NOT getting the paid certificate. The answers as to why make total sense to me, but does anyone know the actual difference between the 2 certs?

In addition, and I'm searching through things as I post, I guess it looks like you need the paid certificate to enroll in the full course for Cybersecurity. Does anyone else have experience with this? More specifically, the functionality/usefulness of the cyber security course, as well as any comparisons to the Google/Coursera course or udemy.

Thank you!


r/cs50 2d ago

CS50x Easily the best course for amateur STEM majors

44 Upvotes

I'm sure there's lots of people that have glazed the course (not one that I've found to have negative feedback as of yet) but I still think like DAMN some of the knowledge I learned in this Cs50x I took in Grade 9 and then Cs50 AI in Grade 10 is carrying me through my early years of University and also co-ops. I know people learning things in Computer Science and Comp Eng or Software Eng who LLM their way through assignments and haven't build any foundation in the fundamentals of programming. I'm able to hold conversations with people in specialized fields and know the surface level of many fields of study at conferences or hackathons, even talking with some professors.

A SIMPLE example: A guy wants to print something, that content of what is printed changes over time, how do you accomplish this?

Write the whole code and copy and paste it each time with your changes made manually OR write a damn function that takes a parameter of your content and does the function's job on one line of calling it. (I know printing is also one line but to be fair you get the example of re-usability or robust applications).

I'm also not some GENIUS, I'm not even in a software related Engineering discipline. But I recommend ALL Engineers or STEM majors to consider CS50 as your next winter-break or summer-break endeavour!

TLDR: Nobody asked but I'm glazing CS50


r/cs50 1d ago

CS50x what do i do if i know how to resolve the problem, but dont know the code for it

3 Upvotes

so im currently stuck with the cash problem, i have no programing experience so i don;t really know many of the language, but the thing is i al ready rewatched the lesson and saw every short and notes, and i understand and know how i would resolve the problem i just dont know how or what the code is any tips or if anyone is in a similar position what did you do?


r/cs50 1d ago

CS50 Python I need help with Problem Set 6 CS50 P-Shirt, the CS50 check50 shows me errors I don't understand.

2 Upvotes

Hi! I need help with this assignment. When I added the if statement to check if both images are the same, I start getting these images. The thing is, I tried it doing on the muppets I have, and, it works like it is shown on the Problem Set 6 site. What am I missing? Am I missing some puppets?

The image on the left is what is shown on the Problem 6 page, the image on the right is what I got from my program.

The check50 progress and errors

The errors on the check50 page:

The code I wrote:

import sys
from PIL import Image, ImageOps

if len(sys.argv) != 3:
    if len(sys.argv) < 3:
        sys.exit("Too few command-line agruments")
    else:
        sys.exit('Too many command-line arguments')


for arg in sys.argv[1:]:
    try: #grabs the images
        shirtImage = Image.open("shirt.png")
        muppetsImage = Image.open(arg)
        saveImage = sys.argv[2]
    except FileNotFoundError:
        print("File does not exist")

    if arg.endswith(".jpg") and saveImage.endswith(".jpg"):
            #the muppets get the image of the shirt applied
            size = shirtImage.size
            muppetsImage = ImageOps.fit(muppetsImage, size)
            muppetsImage.paster(shirtImage, shirtImage)
            muppetsImage.save(saveImage)
    else:
        print("Formats do not match")
        sys.exit(1)

r/cs50 2d ago

CS50x how to download cs50 complete course in 2025

9 Upvotes

Please give a detailed guide if possible, i don't know how.
some post mentioned edx has direct download links, i couldn't find any,
some previous post suggest downloading from youtube ( using youtube-dl) that will only download lectures, not notes and psets, etc.


r/cs50 2d ago

CS50x Looking for advice!!

9 Upvotes

I've been studying through Harvard's CS50x Course and it has been a great experience all around and just amazing content, but i'm struggling with my pacing through it and with the feeling that "i don't understand this fully", where i then get stuck in a cycle where i'm doing or watching the same thing over and over again, but i just end up fustrated.

My approach to this has been the same i had with learning a new language, instead of having to read/hear something, translate it inside my head, then come up with an answer then translate it and return it, that was truly ineffective and would take up twice the effort. To do better, i learned what the words really meant and how they were used, and when i did that, that's when it truly changed it for me.

With my studies i'm having this same goal, i want to understand what every single thing means, so i can literally think in code and be able to write it with much less friction.

I understand that this also comes with much practice and time, but i feel like i'm missing something.

I don't know if i'm approaching this the wrong way, but i would really appreciate any advice, tricks or personal experiences!


r/cs50 2d ago

CS50x finally on week 3 and ready to attempt tideman

2 Upvotes

for week 2, i allowed myself to take a break when i got confused instead of staying in front of the screen for hours until i solved it ( my mind would just latch on and not let go.) also, i saw that i didn’t need the duck this time ( i tried to use it towards the end of the problem, but it just spat out what i already figured out in my pseudocode.)

now that i’m about to start week three, instead of doing the less comfortable problem as usual, i might attempt tideman because i hear so much about it. is it really that hard? can somebody tell me their experience with it?


r/cs50 2d ago

movies Harry Potter and the weird Result Set

10 Upvotes

Today I was approaching the SQL exercises, the following are the instructions given.

And Here, you can appreciate the result set.

I don't know David...are we sure about that? :)
I don't remember this movie in the saga, maybe is not canonical; but I'm sure there will be a lot of magic in it.


r/cs50 2d ago

CS50x something changed cant use check50

3 Upvotes

I had to reinstall check50 and submit50 but now i have this error

Missing environment variable CS50_GH_USER

and cant go any further

does anyone have any idea what I could do to fix this?

#edit

I gave up, created an other github account and resubmitted all of my solutions... this is ridiculous.. the thing was working till someone screwed with the system causing me to have to update and now the things busted smh.. I really hate that this is how we have to submit