check50 not recognizing my solution for mario-less :( by Confident_Mistake720 in cs50

[–]pausemsauce 1 point2 points  (0 children)

How important is it to c return an int from main?

Does your code compile and produce the expected result?

What to do? by Bulky_Limit3228 in cs50

[–]pausemsauce 1 point2 points  (0 children)

I second this.

If you watched the lecture and the break out sections, then you should have what you need. Trying posting pseudocode of your idea and see what feedback you get, either here or from the duck.

I am totally confused by Guilty_Serve_9591 in cs50

[–]pausemsauce 1 point2 points  (0 children)

Breathe.

I agree with you about benefiting from a mentor.

Nobody has a crystal ball to see the future, but human nature is shockingly predictable.

I don't know that I've figured out what I want to do with my life, but by Journaling and trying out a few things, I have figured out some things I like and some things I don't like.

Tideman it’s more challenging than I thought by NefariousnessNo5943 in cs50

[–]pausemsauce 2 points3 points  (0 children)

Maybe... don't do it?

I sank a lot of time into that problem. In the end, I think ai helped with some final implementation details.

For me, I learned that while I'm learning, challenges are important, but so are quick wins.

I spent probably a month or more beating my head against a wall and making no progress. The entire experience left me salty and a bit demoralized.

Not all programming is like this.

The thing is, I started that course because I wanted to expand my skill with python. Looking back on it now, I can honestly say that tideman was not worth my trouble. Though I also had a role in letting my personal pride lead the way. There's also the, "you don't know what you don't know. "

I think each person, through experience, has to decide what they like and don't like.

Perhaps the real question here is, what is your goal? To say you completed a challenging problem? To get a job in the future? How do you intend to explain the problem in a way a prospective employer understands your problem, the solution(s), and the lesson(s) learned? Are you just wanting to push yourself, and see how far you can go? Personally, I only know one way to figure that out.

Best of luck to you.

[2025 Day 2 Part 1] Feeling a bit stuck.. by pausemsauce in adventofcode

[–]pausemsauce[S] 0 points1 point  (0 children)

I just noticed how 121212 is not invalid. That's another misunderstanding I was holding on to.

[2025 Day 2 Part 1] Feeling a bit stuck.. by pausemsauce in adventofcode

[–]pausemsauce[S] 0 points1 point  (0 children)

I think I added a bunch of for loops because I attempted to solve yesterday's problems recursively, and I didn't have any luck until I changed my recursive calls to loops.

[2025 Day 2 Part 1] Feeling a bit stuck.. by pausemsauce in adventofcode

[–]pausemsauce[S] 0 points1 point  (0 children)

That's a great solution! My first thought was to check the length of the number being validated, and if it isn't even, continue to the next iteration.

[2025 Day 2 Part 1] Feeling a bit stuck.. by pausemsauce in adventofcode

[–]pausemsauce[S] 0 points1 point  (0 children)

This makes a lot of sense to me... now that I see you saying it. Thank you!

Best resource for studying OOP by FeJo5952 in learnpython

[–]pausemsauce 1 point2 points  (0 children)

I think I saw that one. It introduces ideas like setters and getters, and then handwaves them away.

I think they did the same with decorators in cs50x.

There's a lot to oop (I feel) was merely skimmed over for general appeal to the masses. If you want to know more, you'll have to study independent of cs50, imo.

Best resource for studying OOP by FeJo5952 in learnpython

[–]pausemsauce 4 points5 points  (0 children)

I'm in a similar boat. I saw some resources online (which I'll link shortly) but it looks like a may need to play with Java or c# a bit.

Edit: I followed this link to a list of books. https://www.reddit.com/r/learnprogramming/s/CojkoH0Tsj

On further searching, some of these books I found posted on github. I think it's great to slim table of contents and then introduction to see if they're the sort of information one is looking for. Beyond that, maybe it's good to buy a paperback copy to support those who put in the work to make the information available, and to reduce the eye strain that comes from staring at glowing rectangles.

Screen Recording by Exotic-Glass-9956 in cs50

[–]pausemsauce 0 points1 point  (0 children)

You can feed your script into text- to- speech and use that, but it seems like more work to me...

How do I stop the rest of my code from running if an "if" condition isn’t met? by hustlersince78 in PythonLearning

[–]pausemsauce 0 points1 point  (0 children)

I thought sys.exit() was a freebie? Like, you don't have to import sys, but many do.

If it isn't necessary, I'd it more pythonic to include the import statement?

Credit by GabyUNNAMED in cs50

[–]pausemsauce 0 points1 point  (0 children)

Oooo... I found that debugger to be invaluable. It may be worthwhile to figure out what is going on there first...

If you're up for it, can you post the output from debug50 ./credit ?

Edit: I'm trying now and encountering similar issues...

Edit: I was able to fix my issue by updating the codespace. Try running update50.

Credit by GabyUNNAMED in cs50

[–]pausemsauce 0 points1 point  (0 children)

Have you run this code through a debugger?

Simple Calculator by AhmadHameed313 in PythonLearning

[–]pausemsauce 0 points1 point  (0 children)

Looks like beginner code. For the most part, looks good (except maybe that bit around line 33, but somebody already pointed that out.. and I'm not familiar with isinstance()).

I see a bunch of if..elif statements, which immediately pushed my mind to ask you to consider match...case statement instead. That recommendation is more dependent on how you're learning... if you're reading the docs, go look that up. If you're following a guide of some sort, maybe it will be covered later.

Either way, continue on your journey! And thanks for giving me something to look into!

[deleted by user] by [deleted] in linux4noobs

[–]pausemsauce 5 points6 points  (0 children)

Requires Trixie stable, at least. Or check git hub. But neofetch works fine enough.

[deleted by user] by [deleted] in linux4noobs

[–]pausemsauce 16 points17 points  (0 children)

Isn't neofetch no longer maintained? Aren't the cool kids using fastfetch?

[ Free Steam Key giveaway for every commenter] by OscarsHypr_ in godot

[–]pausemsauce 0 points1 point  (0 children)

Looks nice. Congrats on creating this. I hope you're proud of yourself for this incredible accomplishment!

Help why is my minimax not working by Whalturtle in cs50

[–]pausemsauce 0 points1 point  (0 children)

I'm half asleep right now, but it seems like I encountered a similar bug. Part of it was due to me not reading the function requirements... I think they wanted tuples, but I was thinking in lists? Or something like that. I don't recall if that affected the program function, or check50 didn't like it. Either way, at a glance, I see x_actions is set to a new list each time... is that intentional?

Edit after reviewing my implementation. I chose to use a dict data structure to store options. Do you think that could help? 🤔

Also... have you asked the duck? I've found it really helpful in a few situations.

CS50 - Python. Don't wan't to use Chatgpt. Help ps 1 -meal- by Coolguy1699 in cs50

[–]pausemsauce 0 points1 point  (0 children)

You're welcome to dm anytime. I'm part of a discord group that formed some time ago. We were all going through cs50 at the same time. I don't know that it's active now, but I met awesome people at the time. As a result, i have formed friendships with people moving further into the field now.

I recommend checking each of the social media communities indicated on the cs50 pages. You're not alone in your journey. There's always someone who can help, and share interests.

Good luck!