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

 

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

Complete the berlinWall1 function, so that given a year as a parameter, the function returns how many years it will have been at the end of the given year since the fall of the berlin wall. If the year given is before 1989, return -1 (NOTE: The Berlin wall fell November 9, 1989).


berlinWall1(2001) → 12
berlinWall1(1990) → 1
berlinWall1(1989) → 0

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

def berlinWall1(year):

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