Spaces:
Sleeping
Sleeping
if elif else
Browse files
app.py
CHANGED
@@ -90,6 +90,18 @@ if gender == "boy":
|
|
90 |
else:
|
91 |
name = "Alexandra"
|
92 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
"""
|
94 |
|
95 |
main = pn.WidgetBox(
|
|
|
90 |
else:
|
91 |
name = "Alexandra"
|
92 |
```
|
93 |
+
|
94 |
+
```
|
95 |
+
score = 50
|
96 |
+
if score <= 50:
|
97 |
+
result = "fail"
|
98 |
+
elif score <= 60:
|
99 |
+
result = "pass"
|
100 |
+
elif score <= 80:
|
101 |
+
result = "merit"
|
102 |
+
else:
|
103 |
+
result = "distinction"
|
104 |
+
```
|
105 |
"""
|
106 |
|
107 |
main = pn.WidgetBox(
|