![CoffeeDev](/_next/image?url=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F8efa7f24cfd145fdba4befbef9a1a7e7.jpg%3Fs%3D192%26d%3Dhttps%253A%252F%252Fa.slack-edge.com%252Fdf10d%252Fimg%252Favatars%252Fava_0019-192.png&w=96&q=75)
💤
Posts tagged with :zzz:
![CoffeeDev](/_next/image?url=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F8efa7f24cfd145fdba4befbef9a1a7e7.jpg%3Fs%3D192%26d%3Dhttps%253A%252F%252Fa.slack-edge.com%252Fdf10d%252Fimg%252Favatars%252Fava_0019-192.png&w=96&q=75)
![DanielDavidson](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-07-22%2F7445606804887_21bfc410f37751e4c2fc_192.jpg&w=96&q=75)
![cam](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-07-04%2F7389411210337_26c9c6399603e7c62d1d_192.jpg&w=96&q=75)
![blue](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-08-12%2F7575701917953_9e43faecc4034024a637_192.jpg&w=96&q=75)
![BuildNCode](/_next/image?url=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F0f858884e488050b004aa25b88353b84.jpg%3Fs%3D192%26d%3Dhttps%253A%252F%252Fa.slack-edge.com%252Fdf10d%252Fimg%252Favatars%252Fava_0017-192.png&w=96&q=75)
![koeg](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-09-06%2F7710756626752_0c4a9b72ed53bbe3bc37_192.jpg&w=96&q=75)
![ShahmNajeeb](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-08-19%2F7605000008817_09fdf5348e913f3213c1_192.jpg&w=96&q=75)
![YeGao](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-08-27%2F7635512019397_bfc06a153c4266849881_192.png&w=96&q=75)
![cam](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-07-04%2F7389411210337_26c9c6399603e7c62d1d_192.jpg&w=96&q=75)
![NoahS.](/_next/image?url=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F966dddfe53f28a81747ff46e499aca54.jpg%3Fs%3D192%26d%3Dhttps%253A%252F%252Fa.slack-edge.com%252Fdf10d%252Fimg%252Favatars%252Fava_0019-192.png&w=96&q=75)
![AtharvaMalik](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-08-31%2F7671920090945_b3edf2aa8a5ed6cb2333_192.jpg&w=96&q=75)
![jaspermayone](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-07-31%2F7529551472736_8e6cca9c6a0ffa71d7e2_192.jpg&w=96&q=75)
![AtharvaMalik](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-08-31%2F7671920090945_b3edf2aa8a5ed6cb2333_192.jpg&w=96&q=75)
![NikoPurdie](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-09-04%2F7666477899894_5b22ce615ea67d28927f_192.webp&w=96&q=75)
![YashasSingh-U04J8RCP4RW](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-02-01%2F6562491344614_14ad40401ffd5005913d_192.png&w=96&q=75)
![LandonBayer](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-07-07%2F7371070498775_406a2c8b05330b4ef0da_192.png&w=96&q=75)
![CalumDingwall](/_next/image?url=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F709b2dd7d5aaf63c158c427739bb4511.jpg%3Fs%3D192%26d%3Dhttps%253A%252F%252Fa.slack-edge.com%252Fdf10d%252Fimg%252Favatars%252Fava_0018-192.png&w=96&q=75)
![Luca-U07B11NTC9G](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-07-04%2F7387758775281_d4e9c67f77599f805df8_192.jpg&w=96&q=75)
![Draggie306](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-06-26%2F7322839383991_3ee8d13c5cd7eb217816_192.jpg&w=96&q=75)
![Edna](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-06-17%2F7286179655765_d682d3165e1196cd9fd3_192.jpg&w=96&q=75)
![Freddie](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-06-23%2F7340830297712_40da09402b3dad1102a2_192.jpg&w=96&q=75)
#import import random import time #Starting Code text = ("shaking.... \n") answers = ["Yes.", "No.", "Absolutely!", "No waaaayyy!"] #the games code def game(): print("") print("Welcome to the Magic 8 Ball game—use it to answer your questions...") time.sleep(1) print("Ask me for any advice and I'll help you out.") time.sleep(1) question = input("Type in your question and then press 'Enter' for an answer: ") print("") for i in range(4): for char in text: print(char, end='', flush=True) time.sleep(0.1) print(" ") choice=random.randint(1,4) time.sleep(2) choice = random.choice(answers) for i in range(1): for char in choice: print(char, end='', flush=True) time.sleep(0.1) print("") #Game Ending while True: game() print("") play_again = input("Do you want to play again? (yes/no): ") if play_again.lower() != "yes": print("Bye then...") print("") break
![Devnol](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2020-12-07%2F1551841317141_240dfb9b90a4291c26d9_192.png&w=96&q=75)
![Cyrus](/_next/image?url=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F2a945699d20e36b945dcfc865f905995.jpg%3Fs%3D192%26d%3Dhttps%253A%252F%252Fa.slack-edge.com%252Fdf10d%252Fimg%252Favatars%252Fava_0015-192.png&w=96&q=75)
![Cyrus](/_next/image?url=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F2a945699d20e36b945dcfc865f905995.jpg%3Fs%3D192%26d%3Dhttps%253A%252F%252Fa.slack-edge.com%252Fdf10d%252Fimg%252Favatars%252Fava_0015-192.png&w=96&q=75)
![iUnstable0](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-09-04%2F7659133154599_87bb39e56724dff361d7_192.png&w=96&q=75)
async def main(): _display = Display() _vcanvas = vcanvas.vCanvas(128, 64, lambda data: _display.render(data)) render_task = uasyncio.create_task(_vcanvas.render()) frame = vcanvas.Frame(_vcanvas, width=64, height=32, background_color=1, ax=0.5, ay=0.5, position_type="scale", x=0.5, y=0.5) label = vcanvas.TextLabel(frame, text="Welcome!", text_size=1, ax=0.5, ay=0.5, position_type="scale", x=0.5, y=0.5) amogus = 1 try: while True: await uasyncio.sleep(1) print("Looping", utime.ticks_ms()) Pin("LED", Pin.OUT).toggle() if amogus == 0: frame.x = 0.25 frame.y = 0.25 label.text = "Welcome!" amogus = 1 elif amogus == 1: frame.x = 0.75 frame.y = 0.75 label.text = "Welcome" amogus = 0 finally: render_task.cancel() try: await render_task except uasyncio.CancelledError: print("Cancelled render task") uasyncio.run(main())
![YashasSingh-U04J8RCP4RW](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-02-01%2F6562491344614_14ad40401ffd5005913d_192.png&w=96&q=75)
![Tom](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2023-08-29%2F5841799811344_a93f20b94a044b7f6f89_192.jpg&w=96&q=75)
![VihaanSondhi](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-03-27%2F6892108320784_1667df2080ed441212ee_192.jpg&w=96&q=75)
![Aileen](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-09-05%2F7686600127394_a20aaee386a3dfc2196d_192.jpg&w=96&q=75)
![karmanyaahm](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-03-26%2F6860623871491_550427ce390820127b95_192.jpg&w=96&q=75)
![Peiprjs](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2023-05-22%2F5312328065921_c88e163fcaaa58aa8bbc_192.png&w=96&q=75)
![ZeroQL](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2022-07-15%2F3807133419508_cfd13e5a30df36db54f2_192.png&w=96&q=75)
![Peiprjs](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2023-05-22%2F5312328065921_c88e163fcaaa58aa8bbc_192.png&w=96&q=75)
![ZeroQL](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2022-07-15%2F3807133419508_cfd13e5a30df36db54f2_192.png&w=96&q=75)
![Sameer](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2022-12-14%2F4524834528161_5e0064f08f916b28d9e0_192.jpg&w=96&q=75)
![Peiprjs](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2023-05-22%2F5312328065921_c88e163fcaaa58aa8bbc_192.png&w=96&q=75)
![ZeroQL](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2022-07-15%2F3807133419508_cfd13e5a30df36db54f2_192.png&w=96&q=75)
![ZeroQL](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2022-07-15%2F3807133419508_cfd13e5a30df36db54f2_192.png&w=96&q=75)
![matt](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-06-13%2F7266903200262_c64d23eae299f834548f_192.jpg&w=96&q=75)
![sam](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2023-11-04%2F6169322276384_3b57a9f28b2f1eb58e0f_192.png&w=96&q=75)
![Briyan](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-08-30%2F7667350697905_06d9e666e5b6462b8bad_192.jpg&w=96&q=75)
![ZeroQL](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2022-07-15%2F3807133419508_cfd13e5a30df36db54f2_192.png&w=96&q=75)
![Vidhaaaaa](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2023-11-05%2F6149381240996_9a8236453a8e481d2f57_192.jpg&w=96&q=75)
![reesericci](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-02-11%2F6621735921251_a7b86b454210428d38cc_192.png&w=96&q=75)
![cytronicoder](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-09-07%2F7687680038197_e42521b743c1109b6e2e_192.jpg&w=96&q=75)
![ryan](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2023-02-23%2F4853210265587_791e8ce656b8da6d1e56_192.png&w=96&q=75)
![Snow](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-07-27%2F7482146300374_769fb33a7a8564269286_192.jpg&w=96&q=75)
![alex](/_next/image?url=https%3A%2F%2Favatars.slack-edge.com%2F2024-05-17%2F7123462218007_a1897737cd04ad26960f_192.png&w=96&q=75)