Jul-05-2021, 02:00 PM
(This post was last modified: Jul-05-2021, 06:12 PM by Yoriz.
Edit Reason: Added code tags
)
Hey All, complete noob at this. Here is my question:
# This is my first python project
thanks for help!
i tried this also:
# This is my first python project
calc_to_secs = 24 * 60 * 60 num_of_days = input('Enter the number of days: ') print(f'20 days are {calc_to_secs * num_of_days} seconds')This gives result:
Output:Enter the number of days: 2
20 days are 222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222 seconds
Process finished with exit code 0
What am I doing wrong?thanks for help!
i tried this also:
# This is my first python project calc_to_secs = 24 * 60 * 60 num_of_days = input('Enter the number of days: ') print(num_of_days) print(calc_to_secs) calc_answer = num_of_days * calc_to_secs print(calc_answer)