id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

two_times_sum


As practice using CodingBat, fill in the code below so that you "return" two times the sum of the variables x and y.


two_times_sum(1, 2) → 6
two_times_sum(4, 4) → 16
two_times_sum(0, 3) → 6

...Save, Compile, Run (ctrl-enter)

def two_times_sum(x, y):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Post-solution available

Copyright Nick Parlante 2017 - privacy