How to import correctly in python 3 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to import correctly in python 3

Hello. I will not languish for a long time because because of the weak Internet I translate this text 4 times. There is a program that knows the name of the files to be imported. I don't know them. Attention is the question of whether I can import files not manually. Just the import function takes the variable and not the text. Is there a way to import the file only program or need to search Code: X = random_name #asdf Create_random_file(X) Import {¿¿¿¿¿¿¿¿¿}

17th Jul 2020, 10:29 PM
Dragon World
Dragon World - avatar
1 Answer
+ 12
Is this what you're referring to? https://code.sololearn.com/c5XZp2CNCWxK
18th Jul 2020, 4:07 AM
David Ashton
David Ashton - avatar