how to name a specific script? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how to name a specific script?

a = script script script script script script end script1 script1 script1 print(a)

1st Nov 2020, 9:00 PM
Aqua
Aqua - avatar
7 Answers
0
if you wanna make a function that you can use in other project you can name whatever you wannt in a seperate file and you can import like this from .filename import funcionname If the file is in the same directory Now you can acces that function or class
3rd Nov 2020, 10:25 PM
Rei
Rei - avatar
0
can you explan better?
3rd Nov 2020, 9:40 PM
Rei
Rei - avatar
0
How can I give a name to a certain script function so that it can be used in the future?
3rd Nov 2020, 9:59 PM
Aqua
Aqua - avatar
0
you mean you wanna create a module in python?
3rd Nov 2020, 10:04 PM
Rei
Rei - avatar
0
I don’t know what it’s called, since I didn’t find anything in the comments
3rd Nov 2020, 10:08 PM
Aqua
Aqua - avatar
0
ok, thanks
3rd Nov 2020, 10:27 PM
Aqua
Aqua - avatar
0
hope that helped 😁😁
3rd Nov 2020, 10:27 PM
Rei
Rei - avatar