Yasin
Yasin

Reputation: 21

How can I condense these import lines of code?

from wisconsion1 import *
from alaska1 import *
from texas1 import *
from indiana1 import *

Is there some way to simplify this? Esp if I'm going to add more in the future.

Upvotes: 0

Views: 30

Answers (1)

Dennis Kozevnikoff
Dennis Kozevnikoff

Reputation: 2277

Yes, you can simplify and clean up the code it as follows:

import * from wisconsion1, alaska1, texas1, indiana1

Upvotes: 1

Related Questions