so.. this is my code :
import os
def line():
pathInput = input("Type the addres of your file")
pathExists = os.path.exists(pathInput)
if(pathExists == true):
something()
elif(pathExists == false):
print('said path is not avaialable')
def something():
print("yet to work on it")
line()
my goal is that... it should continue on with the code only if the input path is available
i thought this would work but unfortunately it doesnt.... can anyone explain why it doesnt.. and what should the solution be ?