#How to i make it work properly?
12 messages · Page 1 of 1 (latest)
the error i get after 2 instances is :
File "c:\Users\USER\Desktop\python github\first\homework\homework1\test.py", line 10, in <module>
import test.py
File "c:\Users\USER\Desktop\python github\first\homework\homework1\test.py", line 10, in <module>
import test.py
ModuleNotFoundError: No module named 'test.py'; 'test' is not a package
When you import a python file you don't include the .py file extension. It's be just import test
Fails?
i mean, the code ends and it does not go into a loop till i chose y or n
Your loop must go around the if's if you want that to happen
so how do i make it that way? i tried to integrate it into a while true loop
like this
while True :
if user_choise == "n" or user_choise == "N" :
print("Let's stop here")
elif user_choise == "y" or user_choise == "Y" :
print("Move on....")
else :
print("Chose one of the following choice: Yes(\"Y\") or No(\"N\") ")
import test
break```
btw, now learning how to code that's why dono how to do what u tell me to do