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

 

tmhscs@gmail.com python > logic_takeAnotherTurn
prev  |  next  |  chance

You are playing Monopoly the board game! The rules state that you may take another turn if you roll doubles. Return true if you should take another turn based on the two incoming integers (rolls). Return false if you should not take another turn.


logic_takeAnotherTurn(1, 1) → True
logic_takeAnotherTurn(2, 5) → False
logic_takeAnotherTurn(4, 4) → True

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

def logic_takeAnotherTurn(rollOne, rollTwo):

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

Post-solution available

Copyright Nick Parlante 2017 - privacy