schoginitoys commited on
Commit
9c85d46
β€’
1 Parent(s): c76d028
Files changed (3) hide show
  1. __pycache__/examples.cpython-311.pyc +0 -0
  2. app.py +1 -0
  3. examples.py +47 -0
__pycache__/examples.cpython-311.pyc CHANGED
Binary files a/__pycache__/examples.cpython-311.pyc and b/__pycache__/examples.cpython-311.pyc differ
 
app.py CHANGED
@@ -257,6 +257,7 @@ demo = gr.Interface(
257
  "L201",
258
  "L202",
259
  "L203",
 
260
  "python script to print 10 numbers below 20",
261
  "python script to print a random greeting message",
262
  "python script to show a traffic signal use the LEDs \n connected to GP12 Red, GP13 Yellow, GP14 Green.",
 
257
  "L201",
258
  "L202",
259
  "L203",
260
+ "L204",
261
  "python script to print 10 numbers below 20",
262
  "python script to print a random greeting message",
263
  "python script to show a traffic signal use the LEDs \n connected to GP12 Red, GP13 Yellow, GP14 Green.",
examples.py CHANGED
@@ -103,3 +103,50 @@ sentense "Hello, How Are you?"! 🎩✨
103
  on my special screen!" πŸ“Ί
104
 
105
  """
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  on my special screen!" πŸ“Ί
104
 
105
  """
106
+ L204 = """
107
+ # CODE:
108
+ # L204: DELAY: TIME DELAY. PUSH THE JOYSTICK LIKE A BUTTON TO START. MOVE LEFT TO EXIT.
109
+
110
+ from schoginitoys import *
111
+
112
+ while True:
113
+ show("Be ")
114
+ time.sleep(1)
115
+ show("Kind")
116
+ if Config.left:
117
+ break
118
+
119
+ # EXPLANATION
120
+ ## 🌟 Hey there, Future Coder! 🌟
121
+
122
+ Guess what? This tiny piece of code is like a magic
123
+ spell that tells a special screen to scroll the
124
+ sentense "Hello, How Are you?"! 🎩✨
125
+
126
+ ### πŸ” Let's Break It Down! πŸ”
127
+
128
+ 1. **from schoginitoys import ***
129
+ Imagine you have a magic toolbox named `schoginitoys`.
130
+ This line is like saying, "Hey, I want to use ALL the
131
+ magic tools from my `schoginitoys` toolbox!" 🧰
132
+
133
+ 2. **while True:**
134
+ This is like saying, "Keep playing my mini-movie forever!" πŸ”„
135
+
136
+ 3. **show("Be ") and show("Kind")**
137
+ These lines are the stars of our mini-movie! First, it shows
138
+ "Be " and then "Kind" on the screen. πŸ“Ί
139
+ 4. **time.sleep(1)**
140
+ This line is like a short pause. It waits for 1 second
141
+ before moving to the next line. ⏳
142
+ 5. **if Config.left: and break**
143
+ This is your magic exit button! If you move the joystick
144
+ to the left, the mini-movie stops playing. πŸ›‘
145
+
146
+ πŸš€ What Happens When You Run It? πŸš€
147
+ The words "Be" and "Kind" will keep showing up on your
148
+ special screen, one after the other, like a mini-movie!
149
+ And if you want to stop it, just move your joystick
150
+ to the left. πŸŽ¬πŸ›‘
151
+
152
+ """