Skip to content

Commit 4c6d5b7

Browse files
committed
Merge branch 'testing'
2 parents 641a243 + f4670a7 commit 4c6d5b7

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
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

0 commit comments

Comments
 (0)