New course! Every coder should learn Generative AI!
Try a free lesson0
Can you have two different import statements in a single code?
2 Answers
+ 4
sure, you can do, for example,
import numpy
import pandas
in the same script.
+ 1
But multiple imports on one line of code is not PEP 8 friendly.