#๐Ÿ”’ help on understanding this question on my assignment

32 messages ยท Page 1 of 1 (latest)

median timber
#

ive coded a function that takes the averages of any amount of numbers but ive been presented with this step to do, but im not understanding what it wants from me.

dusty swallowBOT
#

@median timber

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.

kind lark
#

Can you see the comment that says Test range(10, 20) here

median timber
#

yes

#

i have tried things like range = (10, 20) and tup = range(10,20)
after testing those that wasnt what it wanted

kind lark
#

The bullet point tells you to make a tuple containing the values from the range

#

How would you do this

median timber
#

tup = (10,11,12,13,14,15,16,17,18,19,20) ??

kind lark
#

that would be directly making a tuple

#

Let's start with just making a range

median timber
#

so just like range(10, 20)??

#

i feel dumb

kind lark
#

Yes

#

Now use the tuple function to turn that range into a tuple

median timber
#

so it should be wanting something like tup = range(10, 20)

#

or

#

tuple(range(10, 20))??

kind lark
#

ding ding ๐Ÿ™‚

median timber
#

oh

kind lark
#

Next comes step 2, passing the tuple with what they call tuple expansion

median timber
kind lark
#

yes, you'll need it for the next step

median timber
#

ah

#

this is what i have so far

#

ah

#

fixed it

#

added a *

kind lark
#

Great ๐Ÿ˜„

median timber
#

thank you so much ^w^

#

!close

dusty swallowBOT
#
Python help channel closed with !close

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.