Posts: 455
Threads: 16
Joined: Jun 2022
May-25-2023, 02:11 PM
(This post was last modified: May-25-2023, 02:11 PM by rob101.)
Assuming both files are in the same directory:
Save this as
a.py
print("Hi. My name is 'a'")
Save this as the script that is doing the
import
import a
Have a play with that and see if you can work it out.
Sig:
>>> import this
The UNIX philosophy: "Do one thing, and do it well."
"The danger of computers becoming like humans is not as great as the danger of humans becoming like computers." :~ Konrad Zuse
"Everything should be made as simple as possible, but not simpler." :~ Albert Einstein
Posts: 455
Threads: 16
Joined: Jun 2022
(May-25-2023, 03:51 PM)Ryan012 Wrote: Hi rob101
Thank you so much for your kind response and explaination.
You're welcome.
I'm going to side-line at this point, for no other reason than: if two people are trying to guide you, it could get a little confusing for you, as we'll have a different approach.
Sig:
>>> import this
The UNIX philosophy: "Do one thing, and do it well."
"The danger of computers becoming like humans is not as great as the danger of humans becoming like computers." :~ Konrad Zuse
"Everything should be made as simple as possible, but not simpler." :~ Albert Einstein