#🔒 Harvard cs50 python
66 messages · Page 1 of 1 (latest)
@chilly warren
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
define a variable
pass the variable into a function that checks if a number if odd or even
i think checking if its odd or even is too advanced he didnt teach me that
im not on conditionals yet
i only know how to make functions and pass in parameter
and do inputs
then just take an input
write a function to print the input
Did you do the problem sets in the first lecture?
im watching the youtube video thouhg
where do i find hte probelm sets
yea thats the problem with the youtube one. Learners didn't know that the exercises exist from there. Please use the official website https://cs50.harvard.edu/python/weeks/1/
Oh sorry thats week 2
Here's week 1 https://cs50.harvard.edu/python/weeks/0/
Scroll to the bottom, you'll see problem sets 0
fuck why did no one tell me there were notes online already
i spent 1 hour writing notes
dont over do it on the notes, just write what you need, alot of understanding comes with practice
That's why we don't recommend people to learn CS50 off of youtube. So much gold nuggets can be found in the official website
i didnt know the notes were already on the website
isnt it the same thing watching the lectures on the website too
Yea but as you now know, cant get the notes/slides/problem sets on youtube
Or at least, its not obvious
what prewritten code?
the tip caculaotr
Theres no prewritten code in the problem sets
oh those... thats fine and normal that you have to practice them anyways
Its putting what you know about writing functions into practice
so functions are alrady familar to me
doesnt hurt to practice it in Python
its the exact same thing
It will probably take what 2 min?
i already spent an hour writing down notes i could of got online
writing notes is good for memory
i can just review the online ones
writing notes is just you retaining knowledge. applying what you know is training a skill
i rather just focus on the video instead
video + practice is important
i know i practice what he says on replit
You asked to be given a practice problem. Now its presented to you, you don't wanna do them? smh
causes its not even related to the lesson
its asking me to just run code prewrriten
Its 💯 related to the lesson
Its literally by them
i already have experience with coding
its the first lesson, it doesnt expect you to know whats going on right away
I was doing luau before
to others it might not be so straight forward, by seeing the output it could help understand whats going on in the code
you should move on to the next lesson
Its fine tho. If you wanna skip, skip it.
the next lecture?
yea
or if you already know what the next lecture is about, you can skip that too. idk
there are some things idon tknow
or need to review
if you have programming experience, most of the basics are going to be very familiar, you just need to skim through and familiarise yourself with the syntax
and on the stuff you dont know just spend more time on that
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.