#๐Ÿ”’ Homework Help

43 messages ยท Page 1 of 1 (latest)

burnt torrentBOT
#

@atomic trellis

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.

quartz remnant
#

!paste

burnt torrentBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

atomic trellis
quartz remnant
#

that or

atomic trellis
#

code isn't too long everythings there that I have

quartz remnant
#

!code

burnt torrentBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

plush nebula
#

it is already pasted, both files

unkempt glen
#

next is a built-in function, I'd suggest renaming yours.
Other than that, not looking too far into it at the moment.

quartz remnant
#

oh wtf then either im tweaking or my iphone is

#

Mb

unkempt glen
#

!d next

burnt torrentBOT
#

next(iterator)``````py

next(iterator, default)```
Retrieve the next item from the [iterator](https://docs.python.org/3/glossary.html#term-iterator) by calling its [`__next__()`](https://docs.python.org/3/library/stdtypes.html#iterator.__next__) method. If *default* is given, it is returned if the iterator is exhausted, otherwise [`StopIteration`](https://docs.python.org/3/library/exceptions.html#StopIteration) is raised.
unkempt glen
#

Yep

atomic trellis
#

where is that

#

idk what ur talking about

unkempt glen
#

You have a def next

atomic trellis
#

oh I see it

#

what should I change it to?

unkempt glen
#

Did you write this code yourself?

atomic trellis
#

not necessairly canny

#

I did not

unkempt glen
#

You may want to spend time reading it, then. Instead of asking others to do it.

atomic trellis
#

Im asking for help because im confused as hell

#

I don't really understand what Im reading because this class im taking is insanely confusing for me

#

which is why Im asking for help since I don't really understand it

#

please.

marsh merlin
#

Where is this code from, then?

drowsy hare
marsh merlin
drowsy hare
#

here

worn kettle
atomic trellis
#

Donโ€™t want help anymore

#

Forget it

worn kettle
#

Please close the thread by typing !close then.

atomic trellis
#

!close

burnt torrentBOT
#
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.