Solve the errors in the following code.
def get_color(version); If version is "blue" return True (boolean). Otherwise, return false. def get_num(version) : Given a string version, return 3 if version is "blue". Otherwise, return -1. pass if -name = main__": assert get_color(...) == True assert get_color(...) == False assert get_num(...) == ... assert get_num(...) == -1
Solve the errors in the following code.
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Solve the errors in the following code.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!