migrate to git.charlotte.sh
This commit is contained in:
commit
fbd588721e
412 changed files with 13750 additions and 0 deletions
9
python-csi160/week02/Week-2Practice-Problems/part6.py
Normal file
9
python-csi160/week02/Week-2Practice-Problems/part6.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
# Read an integer:
|
||||
seconds_past_midnight = int(input())
|
||||
|
||||
|
||||
full_hours_past_midnight = (seconds_past_midnight // 3600) % 24
|
||||
full_minutes_past_midnight = (seconds_past_midnight // 60) % 1440
|
||||
|
||||
print (full_hours_past_midnight, full_minutes_past_midnight)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue