Question: Python How can I strip the name of the output so it matches the wanted output? Current Output ['', '', 'import ctypes.py - Visual Studio

Python

How can I strip the name of the output so it matches the wanted output?

Current Output

['', '', 'import ctypes.py - Visual Studio Code', 'Removing characters before, after, and in the middle of strings | by This Time Is Different | Medium - Google Chrome', 'names.py - Visual Studio Code', 'Test - Discord', 'utils - Clover', '', 'C:\\Users\\vvarf\\Documents\\Rainmeter\\Skins\\Simple Clock\\Clock.ini', 'NeXuS-Ultimate', 'NVIDIA GeForce Overlay', '', '', '', '', '', 'Switch USB', 'Backup and Sync', 'NxDock', 'Program Manager']

Wanted Output ['', '', 'Visual Studio Code', 'Google Chrome', 'Visual Studio Code', 'Discord', 'Clover', '', 'C:\\Users\\vvarf\\Documents\\Rainmeter\\Skins\\Simple Clock\\Clock.ini', 'NeXuS-Ultimate', 'NVIDIA GeForce Overlay', '', '', '', '', '', 'Switch USB', 'Backup and Sync', 'NxDock', 'Program Manager']

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!