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

 

tj@tjleone.com > format
prev  |  next  |  chance

A 'tick' is equal to one tenth of a second. Given some number of ticks, return a string of the form AB.C where B and C are digits in the range 0-9 and A is in the range 0-5.


format(0) → '00.0'
format(7) → '00.7'
format(17) → '01.7'

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

def format(ticks):

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

Copyright Nick Parlante 2017 - privacy