modifier - start.split(" ") initial_modifier - modifier start - start.split(" ") start.pop(1) start - '',jion(start) hour - int(start.split(":")) + int(duration.split(":")) minute - int(start.split(":")) + int(duration.split(":"))
That’s just a bunch of calculations without any assignments…
Plus it literally spits out an error saying “modifier” is not declared as a variable.
The following code seems somewhat reasonable, though there are severe syntax errors and segments which seem like you have no idea what you are doing, while others seems fine.
Plus you try to use f-strings, but you are not using them correctly.
could you show me how to declare modifier as a variable ? because i am clue less
If you aren’t sure about how to declare variables, you probably should go through some more introductory materials before trying to complete this project.
That’s a lot of code for someone who is clueless about how to declare a variable…
You declare a variable in the very first line of the function:
Ok technically this is an “assignment” of the value 0, while Python will automatically “declare” the variable if it does not yet exist in the code → but only if an assignment is happening.
thx for telling me i understand now
but for some reason now they are telling me this is wrong
[boilerplate-time-calculator-19 - Replit]
Please just post the error message ^^°
Because right now it’s basically “
str doesn't have jion” → which is just a spelling error on your side because it’s “
join” not “
tysm i got it right now xd
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.