#πŸ”’ Can someone help me out with my homework?

16 messages Β· Page 1 of 1 (latest)

versed mountainBOT
#

@peak agate

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.

peak agate
dense terrace
#

is this all the information for the task? is it supposed to be pseudo code?
i dont see information about the file format

dense terrace
#

so, what are you struggling with? we cant just do everything for you, we want to see your thought process and maybe guide you toward the solution, not just give it to you

peak agate
#

I’ll type out what I currently have

#

Gimme a sec

#

Start loop for i to length of array

Then if the year(dateRented(i)) == 2025 and returned(i) == False
Then month = Month(dateRented(i))

If Month is greater than 1 and less than 6 then fee() = 10

Else fee = 5

#

I’m not sure it’s 100% correct tho

#

Also sorry if formatting is off I’m typing on phone

deep spruce
#

Seem alright, I'd specify it's less than or equal to 6 instead of just less than 6
Same for greater than 1

The way it's written, tools rented in January or June won't get fined Β£10

dense terrace
#

and you probally need to calculate the total (sum them up) or write them into the respective indices, though that would mean that initially it would have to be zero initialized or something, but otherwise why would it be wrong? it pretty much matches the problem description

peak agate
#

I often struggle with design techniques quite a bit and often lose marks so I’d like to just make sure

dense terrace
#

the problem is too small for "design techniques" to be applicable

versed mountainBOT
#
Python help channel closed for inactivity

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.