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

 

rmueller@lasacs.com > berlinWall2
prev  |  next  |  chance

Complete the berlinWall2 function, so that given a year, month, and day as parameters, the function returns how many years it will have been since the fall of the berlin wall - the year increments on each anniversary day. If the date given is before the wall fell, return -1 (NOTE: The Berlin Wall fell November 9, 1989).


berlinWall2(2001, 12, 31) → 12
berlinWall2(2001, 1, 1) → 11
berlinWall2(1988, 12, 31) → -1

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

def berlinWall2(year,month,day):

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

Copyright Nick Parlante 2017 - privacy