#πŸ”’ help for my assignment

281 messages Β· Page 1 of 1 (latest)

glacial laurelBOT
#

@green musk

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.

vagrant mortar
#

It will be easier to help if you ask a specific question. Do you have any code written?

ornate nymph
#

What have you learnt so far, and what is expected from the assignment (use classes, no external libraries, etc.)?

green musk
#

and i cant get it

#

and im off for friday, sat, sun

#

and i dont wanna waste 3 days not starting

green musk
#

and import json

#

for example

#

def load_athlete

vagrant mortar
#

what is this? Are you doing their homework?

green musk
#

wtf how ?

green musk
ornate nymph
green musk
#

how tf did u do that so quick?

vagrant mortar
ornate nymph
#

DO NOT use ChatGPT too.

vagrant mortar
#

@stray dust don't do people's homework.

green musk
#

i mean i can edit it and stuff

#

add stuff

#

i havent given the whole breif

#

we can count it as help

#

thanks @stray dust

green musk
#

insigna a life saver

stray dust
#

@vagrant mortar I apologize

ornate nymph
#

If you want the easy way out, fine, you can have your easy way out. Just don't come crawling back crying because you flunked your test

green musk
#

i aint got a test

#

so i wont be crawling back pal!

#

plus im only doing this so i can focus on other stuff

#

i wanna learn python in my own time solo

#

im running out of time

#

i have 4 modules all due in 2 weeks

#

yes ill lose out on skill but i can easily gain it with that one 3hr full pythono course on yt

green musk
#

insigan u used chat gpt?

stray dust
#

You do User Inputs, add Weight Category, the User selects a package, then have the script summarize the users profile.

green musk
#

alright ill try one sec

green musk
#

woulda prefered someone do it for me ngl

#

nedbat just had to be the fun police

#

gotta use these functions

#

and import json

stray dust
#

Store each athlete as a dictionary. And write a helper function that takes an athlete’s weight and returns their category. Do a calculate_fees () function.

chilly grail
# green musk woulda prefered someone do it for me ngl

The primary goal of this server is to serve as a locus of instruction and learning. While examples may be learned from, a completed assignment removes an incentive to understand. Ultimately, it's more efficient to teach people how to do a thing than to be the workforce for everyone who comes wanting their homework done for them, which does fall into the realm of an academic integrity violation.

#

!rule 8

glacial laurelBOT
#

8. Do not help with ongoing exams. When helping with homework, help people learn how to do the assignment without doing it for them.

green musk
green musk
#

!rule 34

glacial laurelBOT
#

:x: Invalid rule indices: 34

green musk
#

fair enough

chilly grail
#

We're not that racy, here.

green musk
#

racy?

chilly grail
#

Licentious.

green musk
#

licentious?

chilly grail
#

Sexy.

green musk
#

oh ok thanks

#

coulda said that

stray dust
#

lol

green musk
#

imagine telling ur partner u wanna get licentious in the bed room

#

goofy

#

but its nice u posses so much knowledge

stray dust
#

πŸ˜‚

green musk
#

insignia check my dms i sent more information on my assignment spec

stray dust
#

When I started it sucked. You’ll pick it up pretty quick

chilly grail
#

Assistance via DMs is discouraged.

green musk
#

i mean hes the only one helping me makes sense to just dm

#

dont worry opal mist i wont be breaking section 3, rule 8 of the 32nd commandment

#

imagine reading the rules crazy

chilly grail
#

It cuts out other people from contributing to the discussion here, here being where you've asked for assistance.

green musk
#

oh right true

#

thanks opal mist youve been plently of help i wish you a totally nice day!!

stray dust
#

I’m happy to help you with pointers but I’m not giving you the code. I didn’t realize the rules right away.

chilly grail
#

Teach a man to fish and all that.

green musk
#

id rather have someone else fish for me

green musk
#

oh dear god please send someone that violates rule 8 and does my assignment for me amen

#

and make them licentious looking

#

amen

chilly grail
#

Not quite how that word works. Again, we aren't about doing people's homework for them.

#

Where are you at with it, currently?

green musk
#

listen i guarantee u when u walk into ur next surgery appointment the doctors will pull up chat gpt

#

in 20 years "chat gpt make me dinner2

#

"chat gpt do the dishes"

chilly grail
#

I can tell you that asking ChatGPT without an understanding of how to use it correctly and without sufficient Python knowledge, you're going to spend more time chasing your own tail and wasting time. I see it a lot, here. You say you're on a deadline, well, you're only going to be eating needlessly into your remaining time.

green musk
#

the code looks good so far!

#

chat gpt knows it all

chilly grail
#

Then why are you here at all?

green musk
#

name something chat gpt dont know

green musk
#

human supreamcy thats why

chilly grail
green musk
chilly grail
#

Then, what's going to happen is, you'll go around in circles with it, maybe you'll get lucky with it, you probably won't. Then you'll come back here at the final hour in a panic asking people if they could please help you, which is an unfair imposition on those you're asking help from.

#

Because then everyone has to race to get over the finish line for you.

#

The fact you're asking for help here is evidence that whatever you're doing with it isn't working.

green musk
chilly grail
#

Sometimes it gets things right.

green musk
#

most of the time

#

have u seen chat gpt 5

chilly grail
#

Often it's a tangle of non sequitur garbage.

green musk
#

its got like so many more gpus

green musk
chilly grail
#

Latin. It does not follow.

#

Thing a doesn't logically flow into thing b.

green musk
#

right my bad i should learn the language of the ancient empires now?

chilly grail
#

Usually used in the context of conversation.

#

I'm offering to attempt to render assistance in the now. That offer expires shortly.

#

I won't do your homework for you.

#

I won't debug ChatGPT code for you.

#

I am willing to help you learn the components of a solution such that you can put it together, yourself.

#

Do you wish for my help as outlined at this time?

green musk
#

go on

chilly grail
#

So be it.

#

May I see the rubric, please?

#

At your convenience.

#

@green musk If I'm going to help you, some functional level of responsiveness would be appreciated.

green musk
chilly grail
#

The problem as given to you.

chilly grail
#

A document outlining the problem to be solved and the instructions you are to follow.

green musk
#

so

#

its

chilly grail
#

Nevermind, I'm actually using that word incorrectly.

#

I am fallible.

green musk
#

fallible?

chilly grail
#

Capable of error.

green musk
#

whatever floats yer boat mate

chilly grail
#

Water, usually.

#

Okay, that's your description of the problem. How was the problem presented to you?

green musk
#

i live in turkmenistan so the teachers here just gave that

chilly grail
#

Very well.

green musk
#

TURKMENISTANNNNN

#

sorry i get very patriotic

#

where are u from

chilly grail
#

I'm currently reading and attempting to understand what you've written.

green musk
#

now u know how i feel

#

when u speak a language thats 2000 years old

chilly grail
#

Okay, so you've described some of the weight categories and pricing in terms of sessions per week.

green musk
#

ill haver to import json and use functions

chilly grail
#

There feels like there's more to it.

green musk
#

thats about it

chilly grail
#

Okay. What can you tell me about what a function is?

#

Also, when you get a moment, more information about what you're expected to do would be good.

green musk
green musk
chilly grail
#

I'm attempting to gauge your understanding so I know what gaps I have to fill in.

#

Or I can start at the very beginning and go from there.

#

But I don't want to do the grand introduction to everything if I don't feel like I need to, nor if I don't feel you're going to pay enough attention such that it would be worthwhile.

#

I'm here for people who want to learn.

#

If that's not you, say so now.

green musk
#

i would pay attention i really do want to learn!!!

chilly grail
#

Good.

green musk
#

no i wish to gain the knowledge that you will deomnstrate to me lets go sensei!!

#

lets start from the beginning

chilly grail
#

Very well.

#

Python belongs to a class of programming languages which follow the Object Oriented Programming paradigm.

#

The idea of OOP in Python is that every "thing" you interact with in Python is somehow an object.

#

An object is a datastructure that lives in memory.

#

It is a structure of data with attached functionality for interacting with that data safely.

#

Imagine a lift.

#

Let's say that the lift and the different exits are the datastructure, and the people are the data.

#

The lift buttons are the functionality for interacting with the object such that the state of the object, the lift, changes.

green musk
#

ah so i can go to different floors

#

and access diferent data?

#

opal mist where are u from?

chilly grail
#

So, that's probably a poor analogy, but the idea is that you have a thing, and ways of interacting with that thing in prescribed ways.

green musk
#

we dont have lifts in my country we simply use the stairs

#

but i get what u mean

chilly grail
#

and that every object is of a type

green musk
#

sadly we have a dictator and hes not allowing any lifts rn

#

but i can picture it perfectky

#

oh i wish i was in america

#

opal mist wherte are u from

chilly grail
#

The class from which that object was created. The class is like a template, or factory, for creating objects of its type.

green musk
#

my dream is to ride a lift now that i think about it

#

say opal mist which nation are u from

chilly grail
#

I can see you've lost interest.

green musk
#

i have not

#

i have simply stated turkmenistan has no lifts

#

may i ask wherre ur form

#

out of curiousity

chilly grail
#

I believe we're done here.

green musk
#

but we were doing so well

#

ok i will only stay on topic for this disucssion

#

how does that sound

#

i dont wanna lose such an amazing teacher

#

i really felt like i was in a lift

#

and the humans are data

#

and the buttons are functions

#

i was just asking out of curiosioty where ur from

#

since all corners of the world are connected by python

#

no matter what

chilly grail
#

The class governs the kind of data that can exist in the objects created from it and what functionality is attached to those objects.

#

For example. In Python, we have the class str.

green musk
#

ohhh and int and float

#

right?

chilly grail
#

It governs the creation of and behaviour of objects of type str, strings.

#

Strings being objects which represent text data.

green musk
#

yeah yeah only within that data type

#

oh i am so interested right now

chilly grail
#

Attached to strings is functionality for interacting with those strings.

green musk
#

i have gained further interest

chilly grail
#

For example.

#

!e py print('HeLlO wOrLd'.upper()) print('HeLlO wOrLd'.lower()) print('HeLlO wOrLd'.title())

glacial laurelBOT
chilly grail
#

"Hey, 'Hello, world.' string, give me an uppercased version of yourself."

#

"Hey, 'Hello, world.' string, give me an lowercased version of yourself."

#

"Give me a titlecased version of yourself." Etc.

#

str.upper, str.lower and str.title are some of the methods attached to strings.

#

We call them methods.

#

Because they're attached to the objects.

#

Designed to interact with them.

#

As opposed to being a standalone function which isn't attached in the same way.

green musk
#

ohhh so it does it like in capital letters and changed fonts right?

chilly grail
#

Potentially.

#

When we talk about functions, and methods, too, which are like functions, they can be thought of as objects which represent a collection of code that can be called upon to be run when required.

#

!e ```py
def func():
print('Hello, world.')

func()
func()
func()```

glacial laurelBOT
chilly grail
#

This function's purpose is simply to print Hello, World. when called.

#

Functions also have a kind of inbox and an outbox.

#

!e ```py
def func(parameter):
print(parameter)

func('Hello, world.')
func('Goodbye.')```

glacial laurelBOT
green musk
#

ohhh

chilly grail
#

Here, I have provided arguments in the calls.

green musk
#

but how is the func hello world and goodbye?

chilly grail
#

The arguments being the two string objects.

green musk
#

it only says parameter

#

its only printing parameter

#

not fun

chilly grail
#

!print-return

glacial laurelBOT
#
Print and return

Here's a handy animation demonstrating how print and return differ in behavior.

See also: /tag return

green musk
#

ohhhh

chilly grail
#

Have you covered assignment?

#
var = 123```etc
green musk
#

well we did a couple lessons so far

#

whats var?

chilly grail
#

Okay, variables.

green musk
#

oh wait i have

#

i have

#

btw do u use visual studio for python?

#

can i ask that?

chilly grail
#

Okay. When we create objects in Python, if we want them to persist beyond the line they were created on, they have to be referenced by something in some way, otherwise they are deleted.

#

I don't.

green musk
#

do u consent to tellnig me

#

oh ok

#

is it bad that i do?

chilly grail
#

No.

green musk
#

ok nice what do u use

chilly grail
#

IDLE, because I'm a Luddite.

green musk
#

luddite?

#

is that latin for smarty pants?

#

right sorry back to our lesso

#

lesson

chilly grail
#

My offer for assistance has now been rescinded.

green musk
#

rescinded?

vagrant mortar
green musk
vagrant mortar
green musk
#

yes

vagrant mortar
#

you had the attention of someone willing to help you, and you blew it.

green musk
#

woman > man

green musk
#

or out of curiosity

#

its quite unfortunate that the assistance given to me has been rescinded

#

is that correct sentence?

#

i mean i learnt a couple english words

#

opal i beg ur forgivness thanks for ur help please reconsider the choice of rescinding

#

im gonna go sleep ill check tommorow morning

glacial laurelBOT
#
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.