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

 

amgreyson@gmail.com algebra-1 > multChoice
prev  |  next  |  chance

Given an integer, if it's positive return the result of multiplying it by 10, or if it's negative return the result of multiplying it by 100, or if it's equal to zero return 0.


multChoice(0) → 0
multChoice(1) → 10
multChoice(-1) → -100

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

def multChoice(int):

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: 150 Post-solution available

Copyright Nick Parlante 2017 - privacy