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

 

gaurav1780@gmail.com 01_variables_and_operators > product2
prev  |  next  |  chance

Define a function that when passed two integers, returns the product of the two.


product2(20, -4) → -80
product2(0, 1) → 0
product2(50, 50) → 2500

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

def product2(a, b):

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

Difficulty: 1 Post-solution available

Copyright Nick Parlante 2017 - privacy