brython | Sololearn: Learn to code for FREE!

+9

brython

my code says brython was not define.help me fix it https://code.sololearn.com/WpI1KLqcRPaD/?ref=app

10/3/2020 8:34:48 PM

???

15 Answers

New Answer

+7

but this one work https://code.sololearn.com/W5v76nCjupV7/?ref=app

+6

Mirielle[ InAcTiVe ] ma is it the script type? ive add the"=" also this doesnt work https://code.sololearn.com/WM03vuU5Rusr/?ref=app

+5

i did that early Abhay but it didnt work,and the code you shared have the same issue.brython not defined

+5

Bilbo Baggins ,Abhay , Mirielle[ InAcTiVe ] ,pls help me edit the code and check if it will run then share the link here

+5

pardon me where did you run the code Bilbo Baggins. because mine says brython is not defined.dont get angry pls

+5

sir im stuff out with variables such as null,html e.t.c "undefined".couldnt work and precisely network is available here. it shows on console brython is not define Bilbo Baggins

+4

Not angry, really! I run it on Android... I think your problem is Internet, maybe... Try this one (python code separated from HTML) https://code.sololearn.com/WBob3omfbuUX/?ref=app

+3

It's a tricky bug that needs attention, there's a missing "=" in the source attribute at line5.

+3

https://code.sololearn.com/W13wXDB4wO5h/?ref=app You need to add //</script><script type="text/python"> If you are using js file to write python or , <script type="text/python></script> when working in html

+3

anshiude works fine for me ,

+3

It works for me, just make sure there's no typo https://code.sololearn.com/WoJgG3yOHb4U/?ref=app

+3

anshiude, you need to make two changes to your code: (1) at your line 5: change the brython provider, and the way you invoke it (2) at your line 11: change how you are declaring the script Here it is: https://code.sololearn.com/W3G62CTukXb2/?ref=app

+3

Well, I think I already shared your edited code... what else do you need?

+3

Really sorry! I cannot reproduce your problem, neither on Android (tested sololearn app) neither on Windows 10 (tested web interface)🤷

+2

Lothar ,Lisdia 🇮🇩