LearnPy Hub
← Comprehensions problems
Easy

Pass or Fail

Read marks and print a list with 'pass' for marks of 40 or more and 'fail' otherwise.

Input

One line of integers.

Output

A list.

Sample 1

Input
72 35 88 40
Output
['pass', 'fail', 'pass', 'pass']

Sample 2

Input
0
Output
['fail']
solution.py
Output appears here
Pass or Fail · Python practice problem · LearnPy Hub