r/cs50

▲ 13 r/cs50

Advice for a beginner?

Apparently, I'm starting my AIML journey as an 18 year old. Not entirely unknown to programming, know a bit of Java, but only at high school level. So I had opted for this programming with Python course, CS50P 2022. Is there any other course that I should opt for? Is this even the right course to do in 2026? My main aim is skill, so I can build my own projects using ML with Python as a tool.

reddit.com
u/myhairclipisbroken — 19 hours ago
▲ 5 r/cs50

AI Autocomplete in VSCode

Is there a universal kill switch somewhere in VSCode to turn this thing off?

I'm worried about academic integrity because no matter what settings I change VSCode keeps defaulting back to just... trying to complete assignments for me.

I've disabled Copilot, uninstalled the codex extension, disabled AI everywhere I can find to disable it, but then I will fire up VSCode, type something like def sum_two_numbers( and it will just.... fill in the function for me.

I'm just deleting it as soon as it happens but this isn't satisfactory because obviously it could give me answers I don't already know, but I just cannot find a way to disable it and stop it coming back and I don't want it doing this as I move through the course.

Web interface is the obvious solution to this but isn't a workable option for me as the time I have to work on CS50 is time I don't have reliable internet access.

reddit.com
u/Statcat2017 — 1 day ago
▲ 2 r/cs50

Is cs50 still worth it for someone who has already studied pf

So, I am in my 2nd semester and have already studied the programming fundamentals (conditionals, loops, arrays and file handling in java ) and now doing oops. I have procrastinated cs50 for way too long and now I am thinking of starting to build some skills. Should I still start with cs50?

reddit.com
u/No_Falcon3018 — 12 hours ago
▲ 1 r/cs50

I created My own solution to the tideman algo.

hello. I have been working really hard on building the tideman algorithm it's almost done. I am sharing it with you because maybe you can get some inspiration to code it yourself. Maybe it will help you idk You can modify it and play around with it. It's more-less a learning reaource.

https://github.com/TheSubliminalVerses/cs50-tideman-example

u/MikeIsBoi — 6 hours ago
▲ 0 r/cs50

Please help me!!!!!!!!! i couldn't solve this

my working 9 to 5 python code

import re



def main():
    time = convert(input("Hours: "))
    print(time)



def convert(s):


    if s := re.search(r"^(\d{1,2})(?::(\d{2}))? (AM|PM) to (\d{1,2})(?::(\d{2}))? (AM|PM)$", s, re.IGNORECASE):
        time = list(s.groups())


        if time[1] == None:
            time[1] = 0


        if time[4] == None:
            time[4] = 0


        if int(time[1]) >= 60 or int(time[4]) >= 60 or int(time[3]) > 12 or int(time[0]) > 12:
            raise ValueError
        if (time[5].upper() == "AM") and (time[3] == "12"):
            x_hour = 0
        elif time[5].upper() == "PM":
            if int(time[3]) == 12:
                x_hour = 12
            else:
                x_hour = int(time[3]) + 12
        else:
            x_hour = int(time[3])


        if time[2].upper() == "PM":
            if int(time[0]) == 12:
                y_hour = 12
            else:
                y_hour = int(time[0]) + 12
        elif (time[2].upper() == "AM") and (time[0] == "12"):
            y_hour = 0
        else:
            y_hour = int(time[0])






        return f"{y_hour:02}:{int(time[1]):02} to {x_hour:02}:{int(time[4]):02}"


    raise ValueError


if __name__ == "__main__":
    main()

my test_working file

from working import convert
import pytest



def test_convert():
    assert convert("9 am to 5 pm") == "09:00 to 17:00"
    assert convert("4 pm to 5 am") == "16:00 to 05:00"
    assert convert("12:00 AM to 12:00 PM") == "00:00 to 12:00"
    assert convert("12 AM to 12 PM") == "00:00 to 12:00"
    assert convert("8:00 PM to 8:00 AM") == "20:00 to 08:00"
    assert convert("11 am to 11 pm") == "11:00 to 23:00"
    assert convert("3 am to 11:30 pm") == "03:00 to 23:30"


def test_1():


    with pytest.raises(ValueError):
        convert("16 pm to 5 am")


    with pytest.raises(ValueError):
        convert("8:60 AM to 4:60 PM")
    with pytest.raises(ValueError):
        convert("9AM to 5PM")
    with pytest.raises(ValueError):
        convert("09:00 to 17:00")
    with pytest.raises(ValueError):
        convert("10:7 AM - 5:1 PM")
    with pytest.raises(ValueError):
        convert("09 AM to 5:001 PM")
    with pytest.raises(ValueError):
        convert("16 pm to 5 am")


def test_2():


    with pytest.raises(ValueError):
        convert("11:60 am to 5:60 pm")
    with pytest.raises(ValueError):
        convert("9 am - 5 pm")

https://preview.redd.it/afvvvx7vb9wg1.png?width=931&format=png&auto=webp&s=f86a840edc5198a0e7e98777ab59bb1cfa5de2a9

reddit.com
u/Opening-Ninja2064 — 1 day ago
🔥 Hot ▲ 97 r/cs50+1 crossposts

Finished CS50x 3 weeks ago! Here is my final project: Zipyshare

Hey everyone,

I just wanted to share my final project with fellow students! I actually completed the course about three weeks ago and launched this project at the same time, but I am still actively working on it and adding new things.

My project is a file-sharing website called Zipyshare. I built the backend using Python and Flask (putting those week 9 skills to use!).

Since launching it, I've spent the last few weeks trying to make it as stable as possible. I recently managed to make the upload and download speeds about 3x faster, and I just added a built-in preview system so users can view videos, audio, and images directly on the site.

Taking what we learned in CS50 and turning it into a live, functioning website has been an amazing learning experience. I would love for you guys to check it out. Any feedback, bug reports, or advice from the community would be hugely appreciated!

site: zipyshare.com

Keep pushing through the problem sets, everyone!

u/MrLabbrow — 3 days ago
▲ 0 r/cs50

using AI on final project CS50P

im working in my cs50p final project is it okay using ai for coding (of course im not just letting the ai do everything i understand every part of the code )

reddit.com
u/Unimar_hercules — 1 day ago
▲ 18 r/cs50

Finally made my first project in CS50x! Week 0 Scratch

This is a huge feat for me personally. I have been procrastinating starting CS50x for more than a year (I got ADHD - I), but I finally started it 3 days ago.

Finished the week 0 lecture in a day and took 2 days to complete the project.

To be honest, I didn't want to submit the project cause I am still not satisfied with it. I mean I could add way more cooler features and improvise the project, but it will take me more time.

And I didn't want to get burned out in week 0 project itself so I decided to not focus on perfection and just decided to submit whatever I could do in 2 days.

Here is my project link, hope you can check it out sometime! = https://scratch.mit.edu/projects/1308449674/

By the way, if you're just starting CS50x now or you're in around the same page as me, feel free to reach out! I got the momentum and all the time, so my only goal is gonna be completing this course properly in the next few months...

reddit.com
u/Feeling_Well_9745 — 3 days ago
▲ 1 r/cs50

Need help in scratch project

I have joined cs50 about 3 days ago and have been woking on a game which is kinda inspired from chrome's dinosaur game . But i am facing some problem on making the scores change when the dino jumps . Please someone check my project so you can understand what i am trying to say. It would mean alot if someone could help

scratch.mit.edu
u/Successful-Copy-3659 — 2 days ago
▲ 10 r/cs50+2 crossposts

I made a short video that finally made Git click for me (11 min)

I struggled to understand Git for a long time — especially the mental model of how commits, branches, and HEAD actually work together.

So I made a short video explaining it visually in 11 minutes: https://youtu.be/s3UVVkmyS78?si=FIe2HrfsKPHV5R0G

Covers:

  • How Git actually tracks changes
  • Branches and commits visually explained
  • Common mistakes beginners make

Hope it helps someone here who's been confused like I was. Happy to answer questions in comments!

u/PreferenceNo9502 — 2 days ago
▲ 3 r/cs50

Hit the mario wall, makes me think of pivoting

Hello everyone, i have a question about the course, i took cs50x for two main reasons, to be able to think like a programmer, and to be able to develop video games using godot, godot uses gdscript, a coding language that is really similar to python, i have been watching cs50x for around a week now, problem sets were enjoyable to solve, but when tackling the mario problem, it been tough for me to comprehend, especially since i still have no idea how to exchange spaces with the hash symbols, i was able to make the tip of the pyramid, but when trying to make the rest, all i was able to do it to replicate the first line onto additional lines, not change it's contents, so i was wondering, do i really have to try to over and over until i eventually be able to solve it after a long while, or should i light watch the rest of the course, or is it better to pivot to sc50p since it's more appropriate for my goal to develop games using godot ?

reddit.com
u/agent-818 — 2 days ago
▲ 1 r/cs50

CS50P: Failing one check in the pset5/test_fuel task and can't debug my way out of it

Hey all,

So the check I'm failing is:

https://preview.redd.it/ftqxpp5phpvg1.png?width=755&format=png&auto=webp&s=1fe0e77f4d4582fa867f1d842212cdd5859b1f80

Upon debugging I did notice I need to treat decimals with .5 separately as round() was rounding 10.5% to 10% instead of 11%, otherwise all seems well. check50 doesn't show me what numbers it tests so I don't know how else to figure out what inputs it's not evaluating correctly. Any insight?

TIA!

reddit.com
u/Ilikesmart_ok — 4 days ago
▲ 0 r/cs50

ACCIDENTALLY SUBMITTED THE WRONG PROJECT!!

I completed my WEEK 0 of cs50x, made a scratch project and submitted it but actually forgot to change a block from 3 seconds to 60 seconds (which basically sets the duration of the game). I submitted it through the links provided in the cs50.harvard website. But after 2-3 hours i noticed that i forgot to the 3 second to 60 second shift so i immediately did , saved it again and submitted it through the same links. Now it shows 2 submissions. Which one will they consider and is this going to affect my performance?

reddit.com
u/IncreaseSensitive537 — 4 days ago
▲ 1 r/cs50

Why my edx account keeps signing out?

I started with cs50p watched 4lectures but didnt do the psets now thinking of starting with cs50x and then switch to python now everytime i log into the account and open the python course it's doesn't create any issue but whenever I'm trying to discover new course or open a new page my account is signing out why is this happening?

reddit.com
u/Wonderful-Hope1771 — 1 day ago
▲ 6 r/cs50

Need help starting with Love and Lua

If I’m using the wrong tag sorry, lmk

I recently finished CS50 introduction to python and am moving onto CS50x and CS50 2D Game Design, just started the first lecture for 2D and the professor talked about using the engine Löve and the language Lua, neither of which I was familiar with. I wanted to get them going immediately because I just figured it’d be easier to take notes with actual code and comments.

Anyways, I downloaded Löve no problem, it seems a bit different than engines I’ve used in the past (I have limited experience with Godot, Unity, and Unreal, very limited truly) but I felt like I’d be fine so long as he explained how we were supposed to be loading programs into it.. he didn’t really. Just talked about using an extension to code in VSCode, okay, got that extension but VSCode is yelling at me about a debugger, so I got that too and it’s yelling at me about folders. I’m sure they’re not set up great, I have no idea what I’m doing, but.. shouldn’t it be able to load the file itself? Not doing anything crazy, literally just trying to make a window. I switched over to GitHub‘s codespace, I’m more familiar with that anyways, and I’m lost as to how that’s meant to access Love?

I’m truly hoping so bad I’m just being an idiot and missing something, I’m still a beginner so please excuse my ignorance, I just truly don’t know what to do but I really want to take this course and learn all I can! I found a YouTube tutorial for it and it seems way too involved, has to do with editing my computers environment variables? It also wasn’t explaining much, and I’m really getting lost with both Love’s and Lua’s documentation

Please if anyone can help I’d appreciate it endlessly

reddit.com
u/lefthanded_zebra4339 — 4 days ago
▲ 4 r/cs50

Waiting for results got bugged

I don't think I made any mistakes and the code is working well but when I try to check50 it keeps saying waiting for results. Did I make any mistakes?

u/Olkanov — 3 days ago
▲ 0 r/cs50

How do I run my code in the CS50P workspace?

When I log in to the CS50P workspace, there isn't a button to run the code without debugging mode.

reddit.com
u/spaceboom07 — 4 days ago
▲ 2 r/cs50

project not made in GitHub

I have made my project in my own terminal, not in GitHub, but for the final project you need to submit50 it. I have images, a .db file and multiple .py files that import from each other.

Is the best I can do now copy-paste it all into GitHub? Or can I still submit it from my terminal?

reddit.com
u/CharacterOption7528 — 4 days ago
▲ 13 r/cs50

I am gonna crash out. WHERE DID MY FILES GO ???

I literally refreshed it waited and poof no my files man what am i supposed to do now ? i was using check50 and idk the webpage crashed and when i tried refreshing it poof no more files the hell man??? how am i supposed to bring them back ?

u/soundwavesuperiors — 6 days ago
▲ 2 r/cs50

Experience in web development and python can I just go straight to cs50 web development course?

I took a program on web development and one of the classes was python but only as a basic introduction to programming and not to use as backend. The entire program has only taught me frontend but I’d like to learn backend as well and touch up on some of the stuff I had a harder time with. My main professor who taught most of my classes wasn’t that great. Some of his material turned out to be seriously outdated. I would like to learn properly and get into backend now and I was wondering if it would be doable to skip the computer science cs50 class considering I already know the basics of python and JavaScript and web development. The python class was taught by a different professor who was actually a really great professor

reddit.com
u/Pannman99 — 5 days ago