Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,9 @@ def func(percent, numBlocks):
|
|
4 |
filledSquares = "<div style='height:50px;width:50px;background-color:#555;display:inline-block'></div> "
|
5 |
emptySquares = "<div style='height:50px;width:50px;background-color:#999;display:inline-block'></div> "
|
6 |
numFilled = round(round(percent/100) * numBlocks)
|
|
|
7 |
numEmpty = numBlocks - numFilled
|
|
|
8 |
HTMLstr = filledSquares * numFilled + emptySquares * numEmpty
|
9 |
return HTMLstr
|
10 |
|
|
|
4 |
filledSquares = "<div style='height:50px;width:50px;background-color:#555;display:inline-block'></div> "
|
5 |
emptySquares = "<div style='height:50px;width:50px;background-color:#999;display:inline-block'></div> "
|
6 |
numFilled = round(round(percent/100) * numBlocks)
|
7 |
+
print("numFilled: " + numFilled)
|
8 |
numEmpty = numBlocks - numFilled
|
9 |
+
print("numEmpty: " + numEmpty)
|
10 |
HTMLstr = filledSquares * numFilled + emptySquares * numEmpty
|
11 |
return HTMLstr
|
12 |
|