Variable from other files
bossotron13 (15)

From all the google searches I’ve been told to use, from file import Variable but when i do that, it runs all the code inside of file, and is there a way i can import all the variables not one by one. Ive tried from file import * but that just runs all the code.

You are viewing a single comment. View All
Answered by JustARatherRidi (186) [earned 5 cycles]
View Answer
mat1 (2260)

@bossotron13 In level2, add from main import power and then you can use the variable.