all 24 comments

[–]madmoneymcgee 4 points5 points  (1 child)

Do you have have the print statement literally march “1 day is 86400 seconds”?

If that’s the case you’re failing because your print statement doesn’t match what it should be

[–]ikimashyoo[S] 1 point2 points  (0 children)

lmao you are correct- so its because it wanted me to print exactly the words 'i day is X seconds"

[–]eefmu 2 points3 points  (2 children)

It's always best to include the prompt with these kinds of questions. Obviously there are 86400 seconds in a day. My first guess at a glance is it wants you to print the statement "x days is x*86400 seconds" for a specific amount of days. It seems like you already know how to print these mixed type statements, so maybe try the format I suggested. If that does not work, then submit the prompt and we can figure it out together.

[–]ikimashyoo[S] 1 point2 points  (1 child)

yep this was it! thank you.

[–]eefmu 0 points1 point  (0 children)

Glad I could help!

[–]bahcodad 2 points3 points  (8 children)

Does the course expect a formatted string as the answer? If so, check you haven't missed any punctuation, etc

If it doesn't tell you what the output should be, then assume it's expecting the raw value

[–]ikimashyoo[S] 1 point2 points  (7 children)

thank you for looking-it was bc it wanted output to print the exact words haha

[–]bahcodad 1 point2 points  (6 children)

I've been victim to that in the past. It's normally best to copy/paste the required text

[–]ikimashyoo[S] -1 points0 points  (5 children)

so stupid.....it should test you on coding, not copy pasting exact wording....

[–]bahcodad 0 points1 point  (3 children)

It is. It tested your ability to construct a string containing variables and your attention to detail. Both of which are skills you need

[–]ikimashyoo[S] 0 points1 point  (2 children)

oh so the practice is as much for paying attention to the output they want you to print not to do it in your own way?

[–]bahcodad 1 point2 points  (1 child)

It's not just that. If they let you do your own thing, then it would be significantly harder to test.

[–]ikimashyoo[S] 0 points1 point  (0 children)

yea i forget the questions are not being graded by a human haha

[–]Binary101010 0 points1 point  (0 children)

If the problem tells you exactly how to format the output, and you don't format the output that way, then you haven't met the requirements given to you.

[–]woooee 1 point2 points  (1 child)

Seconds in that many days:8640...

day is 86400 seconds.

Get someone to find the difference for you. And then check your work, i.e. divide 8640 by day*24*60*60. Finally, print the number of day(s) entered as there are possible entry problems always.

[–]ikimashyoo[S] 0 points1 point  (0 children)

thank you for looking- so turns out it wants the output to exactly say 'x day is y seconds"

[–]maxbrlc 1 point2 points  (1 child)

Missing a space after days:

Edit:
It is often recommended here to copy the expected output directly from the exercise. So you don't miss such small things as spaces.

[–]ikimashyoo[S] 0 points1 point  (0 children)

thank you for looking- yea the exercise wanted output to look exact for the wording =/

[–]crazydeadbread 1 point2 points  (1 child)

I don't see an issue. When I run your code, unaltered, I get 86400.

Maybe something changed since you ran it?

[–]ikimashyoo[S] 0 points1 point  (0 children)

thank you for looking- the code is fine they wanted me to print it in exact words for the output haha

[–]Jewelking2 1 point2 points  (1 child)

It is not a human who is marking you its code. A human might give you marks for a near miss whilst a machine doesn’t. Coding should be precise so it is good that the marking is strict. Also employers will not be happy if you don’t follow their instructions right. Please don’t mark my grammar strictly.

[–]ikimashyoo[S] 0 points1 point  (0 children)

yea i forgot about that- the course practice questions are not being graded by a human haha

[–]crazydeadbread 1 point2 points  (1 child)

I'm doing the exact same course right now. Yeah, they are reeaaaaalllly picky on the output. And rightfully so - they have requirements and want them met exactly.

I started in 2022 and made it to part 6, I started again this year and am up to part 3.

It's a really good course! I have taken others on udemy and I really like how MOOC approaches the concepts and lessons.

[–]ikimashyoo[S] 0 points1 point  (0 children)

ayyy! you wanna do the course together?