I would like to know why the code below works fine when executed from Python interpreter but it returns no value when I "pack" it into the file.
import os
import pandas as pd
getFile = (input('\nEnter Excel file name: ')).lower()
getTab = (input('\nEnter tab name: ')).lower()
fileName = os.path.join(os.getcwd() + '\\' + getFile)
pd.read_excel(fileName, sheet_name=getTab, header=None)
Is there any reason I can't run this code from someFile.py? What I do wrong? Many thanks for your kind help. Please, be forgiving, I'm not a professional or skilful coder.