#🔒 Harvard cs50 python

66 messages · Page 1 of 1 (latest)

chilly warren
#

Can someone give me a practice problem I finished the first lecture on functions and variable.

distant marlinBOT
#

@chilly warren

Python help channel opened

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.

sharp badge
#

define a variable
pass the variable into a function that checks if a number if odd or even

chilly warren
#

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

sharp badge
#

then just take an input
write a function to print the input

empty flame
chilly warren
#

where do i find hte probelm sets

empty flame
#

Oh sorry thats week 2

#

Scroll to the bottom, you'll see problem sets 0

chilly warren
#

fuck why did no one tell me there were notes online already

#

i spent 1 hour writing notes

sharp badge
empty flame
#

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

chilly warren
#

i didnt know the notes were already on the website

chilly warren
empty flame
#

Or at least, its not obvious

chilly warren
#

all the problems are just asking me to run prewrriten code

#

ima just skip it

empty flame
#

what prewritten code?

chilly warren
#

the tip caculaotr

empty flame
#

Theres no prewritten code in the problem sets

#

oh those... thats fine and normal that you have to practice them anyways

chilly warren
#

i already have some coding experience

#

with lua

empty flame
#

Its putting what you know about writing functions into practice

chilly warren
#

so functions are alrady familar to me

empty flame
#

doesnt hurt to practice it in Python

chilly warren
#

its the exact same thing

empty flame
#

It will probably take what 2 min?

chilly warren
#

i already spent an hour writing down notes i could of got online

sharp badge
chilly warren
empty flame
#

writing notes is just you retaining knowledge. applying what you know is training a skill

chilly warren
#

i rather just focus on the video instead

sharp badge
#

video + practice is important

chilly warren
empty flame
chilly warren
#

its asking me to just run code prewrriten

empty flame
#

Its literally by them

chilly warren
#

i already have experience with coding

sharp badge
#

its the first lesson, it doesnt expect you to know whats going on right away

chilly warren
#

I was doing luau before

sharp badge
#

to others it might not be so straight forward, by seeing the output it could help understand whats going on in the code

sharp badge
empty flame
#

Its fine tho. If you wanna skip, skip it.

chilly warren
sharp badge
#

yea

empty flame
#

or if you already know what the next lecture is about, you can skip that too. idk

chilly warren
#

or need to review

sharp badge
#

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

chilly warren
#

im not gonna stop till i fiinish the cs50 course

#

im just consistent every day

distant marlinBOT
#
Python help channel closed for inactivity

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.