#๐Ÿ”’ I dont understand how this works at all.

96 messages ยท Page 1 of 1 (latest)

ruby gorgeBOT
#

@warm fable

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.

barren venture
#

!code

ruby gorgeBOT
#
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.

warm fable
#

oh i need to put the code in a pastebin thingy?

barren venture
#

Or

cyan flame
#

If it's too long to paste here

barren venture
#

!code

ruby gorgeBOT
#
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.

barren venture
#

We don't allow file uploads.

warm fable
#

ah alright

#

i put them into the website

#

pasted

cyan flame
#

You have to share the resulting URL

warm fable
#

ah alright sorry

barren venture
#

And what's your question?

cyan flame
#

There's an error on line 218 I think

warm fable
#

I dont get anything. I cannot even comprehend anything

#

it just doesnt make sense to me

#

i dont understand how the code works

cyan flame
#

Did you write it?

warm fable
#

no

#

it is the code i have to refer to for my final year exam

#

like for example i dont get what a 2d list does

#

and then when i get an explanation

#

i dont understand like what the 2d list in the code actually does

barren venture
cyan flame
#

Have you modified the code at all?

warm fable
#

i was given a python 2 version of the code and a python 3 version of the code

warm fable
#

i dont understand some of the stuff in the program as well

cyan flame
#

So you're not stupid, you just don't know Python

warm fable
#

basically

cyan flame
#

You should stop calling yourself stupid.

warm fable
#

no im stupid for not revising the entire year

cyan flame
#

Ok, well I won't argue with that.

#

:P

warm fable
#

im still at a beginner's stage

#

everyone else advanced ๐Ÿ˜ญ

cyan flame
#

Do you have a book to learn from?

warm fable
#

yeah i guess so but sometimes when i read a book it suddenly turns into words

#

it no longer goes into my head

barren venture
# warm fable thats genuinely my issue. Im so stupid i dont get how they interact

By "interact", I mean look at what data is going in an out of the functions. These functions take data in the form of parameters, and give data back in the form of return values. To see how the program operates, look at where data is originating, and then see what functions the data is passed into.

If you're behind in your studies though, you may need to take a step back and reinforce the fundamental concepts used here, like functions and classes.,

cyan flame
#

There's no replacement for experience.

barren venture
warm fable
cyan flame
#

A trace table is a technique used to test algorithms in order to make sure that no logical errors occur while the calculations are being processed. The table usually takes the form of a multi-column, multi-row table; With each column showing a variable, and each row showing each number input into the algorithm and the subsequent values of the va...

barren venture
#

Oh, I didn't know that had a name. Im surprised I've never come across that before.

And that can help, yes. I often create one of those on paper while debugging.

cyan flame
#

Yeah it's just pen-and-paper debugging

warm fable
#

something like this?

barren venture
#

What I meant is looking at how data "flows" through the program. That's how I tend to make sense of code. Programs typically have somewhere where data is "created" (read from a file or the internet), functions that do something to the data (they take the data, modify it, and return new data), then somewhere where the data is output (written back to file or send back over the internet).

If you think about it like that, you can visualize programs and "pipes" of data from where the data comes into the program, to where it's output at the end.

#

I'm a very visual person, so seeing programs as pipes/wires of data has always helped me.

warm fable
#

ah alright

#

well i think one of the issues may be the fact that i dont understand certain programming constants so to me it looks like the data is going through one pipe and teleporting out of another

barren venture
#

If you're behind in your knowledge though, start there. You can't read code that uses concepts that you don't understand.

warm fable
#

like one of the parts of the codes it makes like 51 lists

#

why it makes 51 lists?

#

i have no clue

warm fable
#

ahhh

#

oh so i trace where the data goes and the problem i stumble upon i revise that

barren venture
#

You'll find what works for you over time.

warm fable
#

ah ok

#

its because i find big blobs of code confusing

#

also whats the best place

#

to learn those fundamentals from

#

like any specific sites or channels or?

cyan flame
#

!res

ruby gorgeBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

warm fable
#

thank you

cyan flame
#

If you don't want to read your book there are some video resources there

barren venture
barren venture
warm fable
#

oh damn ๐Ÿ’€

barren venture
#

RealPython is the best Python site I know of, but I've only skimmed their stuff when helping other people who are referencing their site.

warm fable
#

ah alright

barren venture
#

They seem pretty good though.

warm fable
#

thank you guys for the help

#

ill make another post if i find anything specifically difficult

#

is there anything else i should know

barren venture
#

Ya, specific questions are far easier to answer. "Help me understand 200+ lines of code" is difficult to answer well.

barren venture
#

No, it's fine. It's quite common. That's just more of a suggestion. You'll get better help with better-defined questions.

warm fable
#

alright, well thank you for helping me

#

ill see you later guys

barren venture
#

You're welcome. You can !close this thread if you're done (it will auto close itself if you don't after an hour).

warm fable
#

ah alrigh

#

well bye guys

#

!close

ruby gorgeBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, 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.