How to save Python output as an Excel file.

Asked 2 years ago, Updated 2 years ago, 40 views

I want to get a code that automatically saves the output value in Excel by running Python On the Internet, there is a way to automatically save the value of notepad in Excel Is there a way to just save the output value in Excel within Python?

a = [(2310, 'Ko Byung-jae', (2311, 'strong')] # Dormitory personnel list
b = []
running = True
while running:
    Guess = input ("Enter code"):")
    if guess == 'B2310':

        a.remove((2310, 'Ko Byung-jae') # Deleted the list from a = a is the number of absentees
        b.append("2310, 'Ko Byung-jae'") # Add a list to b = b is the number of attendees
    elif guess == 'B2311':

        a.remove(2311, 'strong'))
        b.append ("2311, 'powerful'")
    elif guess == 'check':
        # I want to make sure that you can see it directly in Excel when you enter check here.

python excel

2022-09-22 18:16

1 Answers

I think you can save the file format and name as csv.


2022-09-22 18:16

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.