zjfz-2019-s393639/intro/Task106.py
Aleksander Misztal 4481e139c5 Tasks solved
2020-01-12 15:40:05 +01:00

5 lines
114 B
Python

def penultimate(list, otherwise):
if len(list) < 2:
return otherwise
else:
return list[-2]