cliffxuan commited on
Commit
bd65d56
·
1 Parent(s): b004dd9
Files changed (1) hide show
  1. app.py +15 -0
app.py CHANGED
@@ -78,6 +78,20 @@ person = {"name": "John", "age": 20, "hobbies": ["football", "video games", "mus
78
  ```
79
  """
80
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  main = pn.WidgetBox(
82
  pn.Column(lesson_1),
83
  pn.Column(lesson_2),
@@ -85,6 +99,7 @@ main = pn.WidgetBox(
85
  pn.Column(lesson_4),
86
  pn.Column(lesson_5),
87
  pn.Column(lesson_6),
 
88
  )
89
  pn.template.FastListTemplate(
90
  title="Learn Python",
 
78
  ```
79
  """
80
 
81
+
82
+ lesson_7 = """\
83
+ ## Lesson 7
84
+ ## Condition
85
+ ```python
86
+ short_name = "Alex"
87
+ gender = "boy"
88
+ if gender == "boy":
89
+ name = "Alexander"
90
+ else:
91
+ name = "Alexandra"
92
+ ```
93
+ """
94
+
95
  main = pn.WidgetBox(
96
  pn.Column(lesson_1),
97
  pn.Column(lesson_2),
 
99
  pn.Column(lesson_4),
100
  pn.Column(lesson_5),
101
  pn.Column(lesson_6),
102
+ pn.Column(lesson_7),
103
  )
104
  pn.template.FastListTemplate(
105
  title="Learn Python",