Python ONE LINE If Else Statements 👨‍💻 #shorts

preview_player
Показать описание
Did you know this? Write your python if else statements in one line 😀

#shorts #python #programming #coding

python, python projects, python programming coding, coding for beginners, coding lofi, coding interview, coding bootcamp, coding train, coding basics, python if else, python if else statement
Рекомендации по теме
Комментарии
Автор

//java :
if(Math.abs(x) == x) {
//positive
return true;
} else {
//negative
return false;
}

lukasjetu
Автор

you can just do is_positive = x >=0

saltysodiums