#π help for my assignment
281 messages Β· Page 1 of 1 (latest)
@green musk
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.
It will be easier to help if you ask a specific question. Do you have any code written?
What have you learnt so far, and what is expected from the assignment (use classes, no external libraries, etc.)?
i did but its on the school pc
and i cant get it
and im off for friday, sat, sun
and i dont wanna waste 3 days not starting
im expedcted to do it however i want but i was given a guide which says to use functions
and import json
for example
def load_athlete
what is this? Are you doing their homework?
wtf how ?
i aint complaigning
reeks of chatgpt too.
how tf did u do that so quick?
I am. we don't do that here.
DO NOT use ChatGPT too.
@stray dust don't do people's homework.
but I aing complaigning bro
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
insignia ignore this
insigna a life saver
@vagrant mortar I apologize
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
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
apopology gladly accepted
insigan u used chat gpt?
You do User Inputs, add Weight Category, the User selects a package, then have the script summarize the users profile.
alright ill try one sec
so did u use chat gpt?
woulda prefered someone do it for me ngl
nedbat just had to be the fun police
gotta use these functions
and import json
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.
can u check dms
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
8. Do not help with ongoing exams. When helping with homework, help people learn how to do the assignment without doing it for them.
did u also read the part where i said i have 4 modules due in 2 weeks
:x: Invalid rule indices: 34
fair enough
We're not that racy, here.
racy?
Licentious.
licentious?
Sexy.
lol
imagine telling ur partner u wanna get licentious in the bed room
goofy
but its nice u posses so much knowledge
π
insignia check my dms i sent more information on my assignment spec
When I started it sucked. Youβll pick it up pretty quick
Assistance via DMs is discouraged.
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
It cuts out other people from contributing to the discussion here, here being where you've asked for assistance.
oh right true
thanks opal mist youve been plently of help i wish you a totally nice day!!
Iβm happy to help you with pointers but Iβm not giving you the code. I didnβt realize the rules right away.
Teach a man to fish and all that.
id rather have someone else fish for me
that makes sense insigna im glad uve helped!
oh dear god please send someone that violates rule 8 and does my assignment for me amen
and make them licentious looking
amen
Not quite how that word works. Again, we aren't about doing people's homework for them.
Where are you at with it, currently?
currently at the asking chat gpt to do it for me then editing it myself phase!
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"
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.
Then why are you here at all?
name something chat gpt dont know
to find a licentious partner that will violate rule 8 for me
human supreamcy thats why
How to finish your homework for you.
if i tell it how to do it, it can
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.
i asked for help before using chat gpt
Sometimes it gets things right.
Often it's a tangle of non sequitur garbage.
its got like so many more gpus
define non sequitur
right my bad i should learn the language of the ancient empires now?
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?
i shall consent to your help at the current outlined time
go on
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.
rubric?
The problem as given to you.
hiyaaaa
whats rubric
A document outlining the problem to be solved and the instructions you are to follow.
fallible?
Capable of error.
whatever floats yer boat mate
Water, usually.
Okay, that's your description of the problem. How was the problem presented to you?
just like that
i live in turkmenistan so the teachers here just gave that
Very well.
I'm currently reading and attempting to understand what you've written.
Okay, so you've described some of the weight categories and pricing in terms of sessions per week.
ill haver to import json and use functions
There feels like there's more to it.
thats about it
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.
its like def then function
okie dokie opal mist no worries
Yes, but I'm asking about the concept of what a function is. What it does. Why and when we might use them. What a parameter is, what a return is.
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.
i would pay attention i really do want to learn!!!
Good.
no i wish to gain the knowledge that you will deomnstrate to me lets go sensei!!
lets start from the beginning
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.
ah so i can go to different floors
and access diferent data?
opal mist where are u from?
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.
and that every object is of a type
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
The class from which that object was created. The class is like a template, or factory, for creating objects of its type.
my dream is to ride a lift now that i think about it
say opal mist which nation are u from
I can see you've lost interest.
i understand thanks for ur amazing explanation
i have not
i have simply stated turkmenistan has no lifts
may i ask wherre ur form
out of curiousity
I believe we're done here.
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
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.
It governs the creation of and behaviour of objects of type str, strings.
Strings being objects which represent text data.
Attached to strings is functionality for interacting with those strings.
i have gained further interest
For example.
!e py print('HeLlO wOrLd'.upper()) print('HeLlO wOrLd'.lower()) print('HeLlO wOrLd'.title())
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | HELLO WORLD
002 | hello world
003 | Hello World
"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.
ohhh so it does it like in capital letters and changed fonts right?
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()```
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | Hello, world.
002 | Hello, world.
003 | Hello, world.
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.')```
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | Hello, world.
002 | Goodbye.
ohhh
Here, I have provided arguments in the calls.
but how is the func hello world and goodbye?
The arguments being the two string objects.
!print-return
ohhhh
Okay, variables.
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.
No.
ok nice what do u use
IDLE, because I'm a Luddite.
My offer for assistance has now been rescinded.
rescinded?
it means she isn't going to help you
isnt it a he
does it matter?
yes
you had the attention of someone willing to help you, and you blew it.
woman > man
i was just asking some nice lovely questions for a stronger bond
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
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.