Ad

should be self explanatory.

def score(t, c):
    if t and c:
        score = 7
    else:
        score = 5
    return score
Code
Diff
  • def hello_world(world):
        if world == True:
            return "Hello, World"
        else:
            return "Goodbye, World"
    • def hello_world(world):
    • if world == True:
    • return "Hello, World"
    • elif world == False:
    • else:
    • return "Goodbye, World"
Code
Diff
  • def hello_world(world):
        if world == True:
            return "Hello, World"
        elif world == False:
            return "Goodbye, World"
    • def hello_world(world):
    • if world == True:
    • return "Hello, World"
    • elif world == False:
    • return "No World"
    • return "Goodbye, World"
def hello_world(world):
    if world == True:
        return "Hello, World"
    elif world == False:
        return "No World"