Drop links or images here to add them to the editor.

De volgende code staat helemaal uitgecommentarieerd. Uncomment de code en test of hij werkt.

# def rekenKmNaarMeters(afstand_in_km):
# 	afstand_in_m = afstand_in_km * 1000
# 	return(afstand_in_m)
	
# aantal_meters = rekenKmNaarMeters(4)
# print(aantal_meters)
Oplossing
def rekenKmNaarMeters(afstand_in_km):
    afstand_in_m = afstand_in_km * 1000
    return afstand_in_m

aantal_meters = rekenKmNaarMeters(4)
print(aantal_meters)  # 4000