#im new to python and want to learn the basic by solving easy question. thank you

39 messages · Page 1 of 1 (latest)

craggy anchor
#

(i don't quite understand what the question wants)

jagged acorn
#

i'm guessing you're writing a function that takes in a single integer (humanYears) and then returns a tuple of three integers, corresponding to:

  1. the input humanYears
  2. the calculated catYears of your cat, and
  3. the calculated dogYears of your dog
arctic sapphire
#

christopherfujino seems to be correct. To add on, I would recommend against codewars and coding exercises as a beginner. You are much better off working on projects that interest you instead.

jagged acorn
#

oh, this is codewars?

#

well skip this one, it's very poorly written

arctic sapphire
#

It seems to be

jagged acorn
#

yeah, i used to use codewars

#

i just thought maybe they had a japanese sensei CS teacher

arctic sapphire
#

Same, but projects are more fun and more useful

jagged acorn
#

but now i remember codewars calls them kata

arctic sapphire
jagged acorn
#

some people find them fun

#

i would definitely say this particular one is neither fun nor useful

arctic sapphire
#

Okay well maybe the fun is more subjective

jagged acorn
#

and useful depends on what your goals are

arctic sapphire
#

But objectively, projects are more relevant in the long term

jagged acorn
#

i would say this is subjective too 🙂

arctic sapphire
#

Haha let's agree to disagree

jagged acorn
#

sounds good to me

craggy anchor
jagged acorn
#

I don't think it's a well written prompt

arctic sapphire
#

You could try it, but I agree it's not very informative

jagged acorn
#

and this doesn't seem to model a real world problem very well

craggy anchor
#

i have code competition coming on 16th july (my tcr put me into this so i have to learn within short amt of time help)

#

its diffcult

jagged acorn
#

if the code competition has questions like this, i wouldn't want to win it

craggy anchor
jagged acorn
#

let me put it this way, if i were interviewing for a job and they gave me this question, i would re-think if i wanted to work there

#

doesn't codewars have like reviews/scores on kata?

#

i haven't used it in many years, but i remember liking the platform back then

craggy anchor
#

i only use w3school

jagged acorn
#

i would just skip the ones that seemed poor quality

arctic sapphire
jagged acorn
#

my point is, i think you can level up your data structures and algorithms with codewars, or leetcode, but don't do every single one

#

ideally, choose ones that are slightly more difficult than what you can handle

#

if you can't even understand what they're asking, i'd just skip it. it's either way too hard...or just poorly written

craggy anchor
#

this one seems interesting

arctic sapphire
#

Does that one sufficiently challenge you?