cliffxuan commited on
Commit
daffb95
·
1 Parent(s): bd65d56

if elif else

Browse files
Files changed (1) hide show
  1. app.py +12 -0
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(