0

My code:

a = input()
print(a)

I want set value from input not confirm dialog.

enter image description here

What should I do?

Sven Hohenstein
  • 80,497
  • 17
  • 145
  • 168

1 Answers1

0

I don't think that'll work. Brython translates to JavaScript, which will run in the browser in event driven mode. This doesn't allow blocking console input.

Skulpt found a solution for that:

https://github.com/skulpt/skulpt/blob/master/doc/suspensions.txt

But if you want to do browser programming, probably the best is to use HTML inputs. A.f.i.k. Brython can cooperate with those.

Jacques de Hooge
  • 6,750
  • 2
  • 28
  • 45