File tree Expand file tree Collapse file tree 4 files changed +13
-2
lines changed
006.1-square_value_of_number
006.1-square_value_of_number Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Original file line number Diff line number Diff line change
1
+ def square (num ):
2
+ # Your code here
3
+ return None
4
+
5
+ print (square (6 ))
Original file line number Diff line number Diff line change
1
+ def hours_minutes (seconds ):
2
+ # Your code here
3
+ return None
4
+
5
+ # Invoke the function and pass any integer as its argument
6
+ print (hours_minutes (3900 ))
Original file line number Diff line number Diff line change 1
1
def square (num ):
2
2
# Your code here
3
- return None
3
+ return num ** 2
4
4
5
5
print (square (6 ))
Original file line number Diff line number Diff line change 1
1
def hours_minutes (seconds ):
2
2
# Your code here
3
- return None
3
+ return ( int ( seconds / 3600 ), int (( seconds % 3600 ) / 60 ))
4
4
5
5
# Invoke the function and pass any integer as its argument
6
6
print (hours_minutes (3900 ))
You can’t perform that action at this time.
0 commit comments