I have been struggling to write some code that prompts the user to choose whether they would like to read/import some data from an excel file or not. I don't want to use Pandas or external packages. I need to be able to have a prompt that asks the user if they would like to read data from excel, and based on their response ask them to input the excel file they would like to read from etc. Does anyone have any clues on how to go about this? Bit of a newby. Much appreciated! Thanks.
file_name = input('Please enter the file name: ') if len(file_name) == 0: print('OK, you don\'t want to play') return print('Processing the excel file') # your code goes here
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)