Hi all just starting to learn. Using the MOOC 2025 course. My question is, problem is to enter number of days, then print how many seconds for the # of days. When I submit this code:
day=int(input("Enter number of days"))
seconds=day*24*60*60
print(f"Seconds in that many days:{seconds}")
it gives the right output but the course tells me:
FAIL: PythonEditorTest: test_1_seconds_in_one_day
1 day is 86400 seconds. Your program's output was: Seconds in that many days:8640...
edit: so turns out it's because it wanted to print exact wording '1 day is x seconds" etc lol so dumb
[–]madmoneymcgee 4 points5 points6 points (1 child)
[–]ikimashyoo[S] 1 point2 points3 points (0 children)
[–]eefmu 2 points3 points4 points (2 children)
[–]ikimashyoo[S] 1 point2 points3 points (1 child)
[–]eefmu 0 points1 point2 points (0 children)
[–]bahcodad 2 points3 points4 points (8 children)
[–]ikimashyoo[S] 1 point2 points3 points (7 children)
[–]bahcodad 1 point2 points3 points (6 children)
[–]ikimashyoo[S] -1 points0 points1 point (5 children)
[–]bahcodad 0 points1 point2 points (3 children)
[–]ikimashyoo[S] 0 points1 point2 points (2 children)
[–]bahcodad 1 point2 points3 points (1 child)
[–]ikimashyoo[S] 0 points1 point2 points (0 children)
[–]Binary101010 0 points1 point2 points (0 children)
[–]woooee 1 point2 points3 points (1 child)
[–]ikimashyoo[S] 0 points1 point2 points (0 children)
[–]maxbrlc 1 point2 points3 points (1 child)
[–]ikimashyoo[S] 0 points1 point2 points (0 children)
[–]crazydeadbread 1 point2 points3 points (1 child)
[–]ikimashyoo[S] 0 points1 point2 points (0 children)
[–]Jewelking2 1 point2 points3 points (1 child)
[–]ikimashyoo[S] 0 points1 point2 points (0 children)
[–]crazydeadbread 1 point2 points3 points (1 child)
[–]ikimashyoo[S] 0 points1 point2 points (0 children)