Avoid Multiple IF-Else Condition using Dictionary |Python Clever Tips || Learn Python Shortcuts||

preview_player
Показать описание
Programming becomes enjoyable when we know some tips & tricks. If you're a new python developer and want to learn cool and clever python tips & tricks, this video is for you.

WHAT IS THE VIDEO ABOUT?
• Clever Hacks To Make You A Smarter Developer
• And, Shortcuts To Make Your Life Much More Fun And Easier As A Programmer

Full Playlist of ADF:
Full Playlist of Databricks:
Full Playlist of PySpark Interview:
Full Playlist of Python Interviews:
Full Playlist of Snowflake SQL:
Full Playlist of Golang:
Full Playlist of NumPY Library:
Full Playlist of PTQT5:
Full Playlist of Pandas:

#python #learnpython #pythondeveloper
#dataanalystroadmap #dataanalystskills #howtobecomeadataanalyst #howtobecomedataanalyst #dataanalystforbeginners #howtolearndataanalyst #learndataanalyst #dataanalystroadmap #dataanalystguide #dataanalyst #dataanalystcourse #dataanalystfullcourse #learndataanalytics #dataanalystbeginner #dataanalystroadmap #howtobeadataanalyst #dataanalystroadmap2023
Рекомендации по теме
Комментарии
Автор

Nice video, but this only applies when you are evaluating a single variable (which in this case is the operation).
How could i use this in a scenario where i have like 5 variables, i pass them to a function which has an 'if' statement somewhat like this:

if value1 == 'x' and 'value2 == 'y' and value3 =='z' and value4 =='z' and value5 =='x':
do_this
elif value1 == 'x' and 'value2 == 'y' and value3 =='z' and value4 =='z' and value5 !='x':
do_that
else:
do_nothing

Thanks in advance.

bernardorufino
join shbcf.ru