I am currently attempting to run another .py file via the following script. However, it will not run the other file.
import time
def talking():
import talk
list1 = ["Whats the time", "WHATS THE TIME?", "WHATS THE TIME" "whats the time", "whats the time?", "Whats the time?"]
input("Whats your name?: ")
while True:
ask = input("How can i help?: ")
if ask in list1:
talking()
time.sleep(1)
if ask == "hi":
print("Hi?")
time.sleep(1)
The file called talk currently simply contains the following:
import time
time.sleep(4)
print("Hello World")
time.sleep(20)
I have done this before but since then i have completely forgotten.