Gallery
Triathlon with starter code
Share
Explore

icon picker
Python Starter Code

Copy and paste the code below into your main.py file before you begin the task.
# INPUT DATA

# prompt for swim points, get keyboard input
swimPoints = int(input('Enter swimming points: '))
# prompt for cycling points, get keyboard input
cyclePoints = int(input('Enter cycling points: '))
# prompt for ???


# PROCESS DATA
# set totalPoints to points for swim add cycle add run
totalPoints = swimPoints + cyclePoints

# OUTPUT DATA
# display message with totalPoints
print('Swim, cycle, run total: ' + str(totalPoints))


Share
 
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.