r/cs50 • • Mar 23 '24

CS50 Python Intro to python beginner here, hints for assignments are absolutely useless

I am well aware what I am about to say may be seen as a hot take coming from a beginner who doesn't ave much knowledge in python, but this may be a viewpoint of others in the course.

I am currently on the"tip calculator" assignment but have been stuck on the last couple assignments and have needed help with them, the "hints" tab does literally nothing to help if I'm being honest.

This is a "hint" in my current assignment.

"Recall that input returns a str"

Like, no shit? I've been coding for less than two weeks and using input commands on the past couple assignments, so for this is be a "hint" feels like a slap in the face. I feel like I've just been thrown to the wolves and basically rely on 3rd party help to truly understand the thought process behind some of these assignments. I'm having to learn functions that weren't taught to me in the lecture. With CS50 insists you go through the encyclopedia that is Python Documentation which is incredibly inefficient especially for a newbie, because even if you find the new function, you're still confused on how to use it.

Seeing someone else solve the problem and show how to do the assignments has been incredibly helpful for me, but ultimately defeats the purpose of the assignments. I don't like using 3rd party sites as it may be on the fringe of potential plagiarism, but when the "hint" system is this useless and open-ended to a beginner, I can surely see why others will check for answers.

With A.I being so widely used nowadays, I would love to see a potential A.I hint based system, where you submit your unfinished work on cs50, and the A.I could give you a potential clue on what you are doing wrong or what you are missing in your code. This lowers the barrier to entry and may make learning programming more of a guided experience, than the current "find your own path in the dark" that it feels like for many.

0 Upvotes

24 comments sorted by

11

u/VladtheMystic Mar 23 '24

My own opinion but I think the hint system is supposed to mimic the real world where you try to solve such problems yourself. Also you can use AI if you like anyway. I find using things like python tutor useful since it shows step by step code execution

2

u/RandomMusician98 Mar 24 '24

What is python tutor? Is it a feature like the duck? Thanks!

1

u/VladtheMystic Mar 24 '24

It's a website, not sure of the exact URL but it provides a step by step execution breakdown of any python program. I don't use the inbuilt debugger but I love using pythontutor for simple programs to see how it's working. Try it out

0

u/xRealVengeancex Mar 23 '24

Will definitely try out python tutor. And I understand that sort of thinking, but I think with beginners they really need to be guided as they might not have a background in anything regarding programming or even close to it. I'm a psychology grad and changing from psych to tech is definitely a rude awakening in terms of thinking process going from the emotional intelligence to logical intelligence sort of thinking.

2

u/VladtheMystic Mar 23 '24

You're right that cs50 python is a bit of a learning curve .. I've done loads of tutorials at the beginner level before and still had to read through solutions / walk throughs from the internet. I do think it makes you more capable as a programmer / learner but yeah it can be quite frustrating. I guess that's the price to pay for a Harvard course that's free šŸ¤·ā€ā™‚ļø

11

u/czekolada Mar 23 '24

Wait, why don't you use cs50.ai ? That's actually an AI chatbot for helping you with these tasks, which is part of the course.

-4

u/xRealVengeancex Mar 23 '24 edited Mar 23 '24

Was unaware they had this for python, I definitely be checking it out.

Edit - Actually they have this on github/VSC in the bottom left hand side of the layout with a duck logo. I've tried it but once again, I'm not sure if its because of how early on I am, but it's just not that helpful enough explaining in simple terms and instead explains in a jargon-esque fashion like you know how to code.

8

u/Cross_2020 Mar 23 '24

That paints a very real picture in the world of programming tho. You really need to figure it out a lot. Helpful hints or directions are not always available. You know how to get input, you know how to return something to printout. That's basically the hint.

-4

u/xRealVengeancex Mar 23 '24

I understand that, but for an absolute beginner, this is a terrible way to go about"teaching" someone. If someone doesn't even understand the fundamentals, why are you leaving them to their own accord?

6

u/Crazy_Anywhere_4572 Mar 24 '24

To be honest, almost everything is already explained in the lectures. Read the lecture notes again or google anything that you don’t understand. Just don’t google pset solution until you finished them.

4

u/xRealVengeancex Mar 24 '24

I’m gonna be honest man, there are multiple functions used for the assignments that were never explained. I was even putting everything David did into VSC myself to practice along with writing down specifics in a word document. Off the top of my head I remember split(), replace(), lower(), convert() never being used in the week 0 lecture yet had to solve assignment problems using these functions.

In the future when I truly have gotten my feet wet with coding I won’t be looking up solutions but until then I don’t see the point of bashing my head against the wall for multiple hours eventually when I barely understand how to code in the first place/what to even put down for an assignment which is what people don’t seem to understand. Isn’t the whole philosophy around tech is working smarter not harder? Everyone learns differently at the end of the day.

5

u/Crazy_Anywhere_4572 Mar 24 '24

Yeah, this I agree with you. I don't really understand why he didn't talk about these functions in the week 0/week 1 lectures. Maybe he want us to learn how to google?

Don't worry, as far as I remembered, this is only a problem in the very first week, so I think you would be fine in other problem sets. Just google whenever you need help.

3

u/xRealVengeancex Mar 24 '24

I’ve been reading more into cs50 and the overall consensus of how the courses are structured as they’re coming from Harvard we might both see some education styles we’re unfamiliar with. I think they really do have a sort of hands off approach and leave you to do all the work, which isn’t a bad thing but I just don’t think we’re used to it early on.

I’ve been using a couple apps as well (Sololearn/Mimo) to supplement the cs50 course as well and it’s actually been a bit more intuitive and helpful, Sololearn has ā€œcommunity notesā€ where they kinda explain the problem and the average people’s reaction to problems. It’s more humanizing which I enjoy.

1

u/Someone-stole-myName Mar 25 '24

Part of being a programmer is jumping into completely unfamiliar territory and figuring things out yourself. You'll always be learning so they're teaching you to be comfortable with uncertainty. Also, the lectures are not meant to teach you just the specifics. Like every other thing, you also need to be able to recognize patterns and adapt to different situations. This is all in fact learning the smart way because it'll help you in the long run.

5

u/Natural_Movie_3557 Mar 23 '24

I think the issue is that you’re taking the wrong course. CS50p is not Heere you need to start - CS50x is. You need to understand basics before taking this course.

I am in week 4 now and have to say the hints there are great starts to solve the psets and the duck is a lifesaver!

5

u/xRealVengeancex Mar 24 '24

It’s funny because I was told to take this course before intro to computer science as that one was tougher than this one. I can’t win šŸ¤¦ā€ā™‚ļø

1

u/Natural_Movie_3557 May 01 '24

You are correct, in a recent workshop David said so, python is more beginner level than cs50x.

There are cs50ap courses that might also be a starting point

2

u/CookingInRealLife Mar 26 '24

What's wrong with people?

First off, I've completed both CS50P and CS50x and will definitely say that CS50 Python is where you want to start. CS50x is breakneck speed. Also, as someone coming from little to no programming experience when I started, I will fully admit it is "weird", that's the only way to describe it. It's like memorizing a dictionary and having to retype it, wherein a single typo will mess the entire thing up. Don't listen to the over confident snobbish people here, frankly, I wouldn't be surprised if they didn't even pass any of the courses and are just LARPing as professionals. And anyone claiming it's easy is just full out lying, there are videos of professional programmers being given these practice set questions and even they struggle a little. I spent hours of each of them but it was all worth it in the end.

The CS50 duck seems to work better IMO during the CS50x course, but still try to use it often even in CS50P. Copy your code (no matter how bad or incorrect it looks) and put it into the 'Duck Debugger - Ask a question' tab and see what it suggests. Also feel free just to ask it questions like, "how to strip "$" signs or "%" signs from a str in Python" and other things of that nature. It is supervised by the CS50 team so it will never give you so much help that it becomes cheating, while still being pretty useful.

Also, for a complete, 'complete' beginner of programming, you may even want to check out the "CS50 Scratch" course. It's super easy but really good at teaching the very fundamentals of what it means to solve problems using coding language processes, like loops and conditionals. While some people see it as a waste of time, I thought it was fun.

So, in all honesty, I completely understand how frustrating learning to code can be. I spent three hours, two separate times, going over code, just to figure out that I had a '0' where a '1' should be. It really, REALLY sucks sometimes. At the same time, it's kind of the process of learning how to code. Even your question on the 'tip calculator' problem, I'm not sure how to help without just giving you the code you want to use. So I get that from the other side, I'm not sure how to help even when I know the answer.

I don't know, just keep going and be sure to celebrate every 'check50' that passes. There were plenty of times where I would literally jump up when it would pass and that's what kept me going.

1

u/xRealVengeancex Mar 26 '24

Thank you for your insight and advice! I was feeling a little crazy reading some of the comments on here like ā€œis it really just me then???ā€

I will definitely try my best to finish the course as well as others in the future!

1

u/Advanced-Stranger973 May 09 '25

pure motivation I was feeling just like xRealVengeancex I did the research tested the out put and got what I thought the project asked for even went back to the lectures I however did not utilize duck or the ai.chat because I thought it would constitute cheating none the less I will continue at the pace best suited for my understanding again thanks for the tip

1

u/[deleted] Mar 24 '24

programming isn’t about learning everything you need to know beforehand. the most important skill is self teaching, and that’s what this course is forcing you to develop. reading documentation may seem ā€˜inefficient’ compared to having an AI explain a concept to you, but it’s also a lot more precise and detailed, and it’s important to get comfortable using it.

1

u/xRealVengeancex Mar 24 '24

I totally understand that, imo but shoving pages of jargon to a beginner is the last thing I would do if I’m being honest. It’s like asking a beginner med student to read pages and pages of academic journals/literature when they haven’t even learned the format.

I’m definitely self-teaching outside of cs50, and it’s only been about 2 weeks but my main point was the ā€œhintā€ system being a major blunder if I’m being honest. After work today I’m going to play around in python just to try and remember more material. I already use apps on my phone in addition to what I’m learning for about an hour each day just for cementing the material further

0

u/[deleted] Mar 24 '24

[deleted]

1

u/xRealVengeancex Mar 24 '24

Ngl, if you aren't struggling on a harvard level course in programming and its your first foray in programming space, you're either lying, a genius, or cheating lol.

1

u/[deleted] Mar 24 '24

ha ha, git gud