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

 

bryce.hulett@hotmail.com > product
prev  |  next  |  chance

Write a function that takes a whole number n and returns the product of it's digits. No for loops or Strings.


product(7) → 7
product(12) → 2
product(123) → 6

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

def product(n):

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: 290

Copyright Nick Parlante 2017 - privacy