bbcmicrobit / micropython

Port of MicroPython for the BBC micro:bit
https://microbit-micropython.readthedocs.io
Other
595 stars 287 forks source link

Dictionary: I can't add new entry. #708

Closed t-789 closed 3 years ago

t-789 commented 3 years ago

Hello! I created a dictionary on micro:bit, and I found out that I can't add a new entry to a dictionary. Here are my code: Cars = {"a1": -1, "a2": -1, "a3": -1, "b1": -1, "b2": -1, "b3": -1, }

Cars['a1a'] = input.running_time()

Cars['a1b'] = 100

And the editor said: issue picture

microbit-carlos commented 3 years ago

Hi @t-789,

Thanks for the report. It looks like you might have been using the Python version of MakeCode, right? This repository is MicroPython which can be used in the online Python editor, Mu editor, etc. For issues with MakeCode you can open a new ticket in https://github.com/microsoft/pxt-microbit/issues

t-789 commented 3 years ago

Thank you!

Get Outlook for iOShttps://aka.ms/o0ukef


From: Carlos Pereira Atencio notifications@github.com Sent: Wednesday, February 24, 2021 10:00:14 PM To: bbcmicrobit/micropython micropython@noreply.github.com Cc: t-789 liuzybj@outlook.com; Mention mention@noreply.github.com Subject: Re: [bbcmicrobit/micropython] Dictionary: I can't add new entry. (#708)

Hi @t-789https://github.com/t-789,

Thanks for the report. It looks like you might have been using the Python version of MakeCode, right? This repository is MicroPython which can be used in the online Python editorhttps://python.microbit.org, Mu editorhttps://codewith.mu, etc. For issues with MakeCode you can open a new ticket in https://github.com/microsoft/pxt-microbit/issues

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/bbcmicrobit/micropython/issues/708#issuecomment-785095029, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AL2OIM5DGQ3XQDTBRI2K33TTAUA65ANCNFSM4XLAU5RQ.