Python import Modul | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Python import Modul

I don’t know how to import python modul Into this app? Who can teach me how to do? Thanks

5th Nov 2018, 9:19 AM
kriny
2 Answers
+ 1
kriny You can import ONLY modules installed on SL server (then not custom modules)
5th Nov 2018, 9:31 AM
KrOW
KrOW - avatar
0
Use this..I'm importing the math module as an example. -import math -from math import sqrt The first line imports all functions in the math module. The second line imports only sqrt from the math module.. You should try it in the playground or complete the python tutorial,its covered in there
5th Nov 2018, 9:34 AM
Mensch
Mensch - avatar