Why doesnt repl automaticly import for instance class Scanner when you try to use it...In othher JDK you can do it easly
import random t=random.randint(1,100) print t
But then instead you would be able to write that code without import shown below.
t=random.randint(1,100) print t
However, this goes against the syntax of python(and other languages), so therefore it would not work.
Automatic import
Why doesnt repl automaticly import for instance class Scanner when you try to use it...In othher JDK you can do it easly
But then instead you would be able to write that code without import shown below.
However, this goes against the syntax of python(and other languages), so therefore it would not work.