Flow_1nl5h18
// Test Inputs
{
"flag_stars": "12",
"longest_river": "nile",
"woman_nobel": "curie"
}
// Test Outputs
{
"flag_stars": "12",
"longest": "nile",
"num_correct": 3,
"score": 100,
"woman_nobel": "curie"
}
Flow_1rhufnh
Flow_1nzxnal
if flag_stars.lower().strip() == "twelve":
num_correct += 1
elif int(flag_stars) == 12:
num_correct += 1
if "nile" in longest.lower():
num_correct += 1
if "curie" in woman_nobel.lower():
num_correct += 1
score = int(num_correct / 3 * 100)
# Initialize denominator
k = 1
# Initialize sum
s = 0
for i in range(1000000):
# even index elements are positive
if i % 2 == 0:
s += 4/k
else:
# odd index elements are negative
s -= 4/k
# denominator is odd
k += 2
pi = s
del(k)
Flow_1nzxnal
Flow_00h8381
Flow_00h8381
Flow_1nl5h18
Flow_1rhufnh