Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
hello
def convert_seconds(seconds): hours = seconds // 3600 minutes = (seconds - hours * 3600) // 60 remaining_seconds = seconds - hours * 3600 - minutes * 60 return hours, minutes, remaining_seconds print(convert_seconds(5000)[0]) ## output 1: test the fork def hint_username(username): if len(username) < 3: print("Invalid") else: print("Valid") hint_username("melvin") ## output 2 def is_even(number): if number % 2 == 0: return True return False print(is_even(3)) ## output 3 def hint_username(username): if len(username) < 3: print("Invalid") elif len(username) > 15: print("Too long for the username, Invalid") else: print("Valid") hint_username("melvinabcdfgabcbceicbhweicbhwib") ## output 4
run
|
edit
|
history
|
help
0
Patterns
Game4
single inheritance
Redd
sen
PyDIP
Python: Stack Simple I
あだだだだだだだだだだだだだだだだだだだだだだだだ
7 Segment Display
lesson 6 finallll