We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 641a243 + f4670a7 commit 4c6d5b7Copy full SHA for 4c6d5b7
1_beginner/chapter4/practice/simplify.py
@@ -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
1_beginner/chapter4/solutions/simplify.py
@@ -0,0 +1,4 @@
+''' Here is a block of code where one tries do determine if
+somone is a nobel prize winner. Rewrite the code to work in one statement'''
+nobelPrizeCandidate = doesSignificantWork and makesBreakhrough
0 commit comments