File tree Expand file tree Collapse file tree 4 files changed +18
-0
lines changed Expand file tree Collapse file tree 4 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 1+ """Here is a block of code where one tries do determineif somone is a nobel prize winner.
2+
3+ Rewrite the code to work in one statement
4+ """
5+
6+ if (doesSignificantWork ):
7+ if (makesBreakthrough ):
8+ nobelPrizeCandidate = True
9+ else :
10+ nobelPrizeCandidate = False
11+ elif (not doesSignificantWork ):
12+ nobelPrizeCandidate = False
Original file line number Diff line number Diff line change 1+ ''' Here is a block of code where one tries do determine if
2+ somone is a nobel prize winner. Rewrite the code to work in one statement'''
3+
4+ nobelPrizeCandidate = doesSignificantWork and makesBreakhrough
Original file line number Diff line number Diff line change 1+ DELETE THIS FILE!!!
Original file line number Diff line number Diff line change 1+ DELET THIS FILE!!!
You can’t perform that action at this time.
0 commit comments