• JavaScriptPHPHTMLCssPythonWordPressWeb developmentLinuxMySQLAndroid
    WindowsJavaC++ / C#LayoutReactUbuntuYiiDjangoProgramming1C-Bitrix
    LaravelSystem administrationTelegramJSONDebianPostgreSQLIOSGoogleHtaccessWindows Server
    GitMacOSGoogle ChromeCMSWooСommerceBootstrapNginxSQLUnityAPI
  • Ask
  • Leaders

Categories

JavaScriptPHPHTMLCssPythonWordPressWeb developmentLinuxMySQLAndroidWindowsJavaC++ / C#LayoutReactUbuntuYiiDjangoProgramming1C-BitrixLaravelSystem administrationTelegramJSONDebianPostgreSQLIOSGoogleHtaccessWindows ServerGitMacOSGoogle ChromeCMSWooСommerceBootstrapNginxSQLUnityAPI
Programming
JavaScript PHP HTML Css Python WordPress Web development Linux MySQL Android Windows Java C++ / C# Layout React Ubuntu Yii Django Programming 1C-Bitrix Laravel System administration Telegram JSON Debian PostgreSQL IOS Google Htaccess Windows Server
Make a leaderReport
J
J
Johnem2020-04-28 20:39:16
Python
Johnem, 2020-04-28 20:39:16

How to remove an empty list in a list?

That is, from this [[], "sgsegs", []]
make ["sgsegs"]

Reply
Answer the question

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Report
S
Sergey Gornostaev, 2020-04-28
@Johnem

a = [[], "sgsegs", []]
b = [i for i in a if i]

Similar questions
S
Stasyn19902015-04-09 21:09:54
How to write an application for a local network (under Linux)? 3Reply
N
Nikolai Shevtsov2015-05-27 18:07:17
How to defeat host mismatch with HP MSA1500 drive? 2Reply
B
bQ12019-11-20 12:40:04
How to remove address highlighting in a letter on Yandex mail? 3Reply
K
Kirito Asumo2017-07-02 12:02:52
How to make the computer think that the modem is not a cellular connection? 4Reply
N
Nikita Shchypylov2017-07-18 17:26:44
What is the best file structure for React? 3Reply

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question

banners