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

 

burns@bxscience.edu burnscfa > gotTwos
prev  |  next  |  chance

gotTwos: Write a python function that shows how many factors of two that a an integer has along with an outstanding factor excluding 1. The function should accept an integer and return a string. This is very spicy.


gotTwos(14) → '2 * 7'
gotTwos(11) → '11'
gotTwos(13) → '13'

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

def gotTwos(number):

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

Copyright Nick Parlante 2017 - privacy