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

 

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

Given a 3-digit number, double its middle digit and return the new number.


double_middle_digit(123) → 143
double_middle_digit(343) → 383
double_middle_digit(371) → 441

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

def double_middle_digit(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