07Python Programming
Imports and Random numbers
Easy10MIN
What are imports?
When programming, it is advisable to use existing code as much as possible. Of course, the code must be of high quality and secure, so it is important to be careful about running code made by others on your own computer or in your own program.
In Python, however, there is fortunately a "standard library", i.e. a standard library of various modules for many different needs. The functionality of the modules is not directly available in your code, but they need to be imported separately into your program for use. And this is done with the import command.
1 / 4
Hakatemia Pro
Learn to hack — start here
Hundreds of interactive courses, virtual labs and CTF challenges in your browser. Start a free trial — no card required.