Kotlin Newbie To Pro - LOGICAL AND COMPARISON OPERATORS - Part 8

  Рет қаралды 21,198

Philipp Lackner

Philipp Lackner

Күн бұрын

Пікірлер: 37
@derekkolb6324
@derekkolb6324 11 ай бұрын
Commenting to support the page. I appreciate the way you explain the flow of things. In 24 hours, I have learned more about Kotlin from this playlist than I have in 2 weeks of my college course! I cannot wait to keep watching your playlists!
@moyaalhayek3288
@moyaalhayek3288 2 жыл бұрын
I really liked the harder version of the homework, thank you!
@userglls
@userglls 11 ай бұрын
so do i
@mformobileapps
@mformobileapps 3 жыл бұрын
great tutorials😍...finally started Kotlin
@ekafrancium
@ekafrancium Жыл бұрын
The answer is True for both simple and hard expression.
@carolinegatwiri2309
@carolinegatwiri2309 Ай бұрын
Both Expressions give True value
@seedgv
@seedgv 3 жыл бұрын
Both True. Catching Up to your tutorials man.
@marktilton8943
@marktilton8943 2 жыл бұрын
Hard expression got me. But I assume it was true because False = False = False. Looking forward to the next lesson.
@udaytewary3809
@udaytewary3809 Жыл бұрын
Simple expression true because in the expression we have and operator which have more preference than or so that expression will be evaluated first and solving we get ans as true Hard expression ans is true because evaluating the all the bracket term after that we will evaluate all the remaining logical operators we will get ans as true
@Luffy_2804
@Luffy_2804 Жыл бұрын
thank you for this amazing course
@shobhithjb4626
@shobhithjb4626 Жыл бұрын
Note: && Operator will not check the second expression if the first expression is false, because false && anything = false || Operator will not check the second expression if the first expression is true, because true || anything = true
@christianzakhour4402
@christianzakhour4402 Жыл бұрын
This is true and important, for example: I have used a comparison where the second case could be null if the first is not true and the app should crash in other languages like c++
@ananddangwal8424
@ananddangwal8424 Жыл бұрын
9:47 Answer is true and 9:53 Answer is true.
@ironicdelta6097
@ironicdelta6097 4 жыл бұрын
great work dude!!!
@arnobhasan8930
@arnobhasan8930 2 жыл бұрын
great tutorial video Its easy to sort length video Vary helpful.
@salihdahi
@salihdahi 4 жыл бұрын
Thank you very much. Well explained m you saved much time
@PeramVinodreddy-yx7vp
@PeramVinodreddy-yx7vp Жыл бұрын
U r seriously something
@suntvhits
@suntvhits 2 жыл бұрын
Both True, True
@h.venkateshdeveloper6997
@h.venkateshdeveloper6997 4 жыл бұрын
simpleExpression = true hardExpression = true
@kseniyabuko
@kseniyabuko Жыл бұрын
Cool homework 🙂
@linux2698
@linux2698 Жыл бұрын
thanks
@jaychavan
@jaychavan 3 жыл бұрын
Both are true !
@prasanjeetchakraborty8402
@prasanjeetchakraborty8402 4 жыл бұрын
simpleexpression =true hardexpression = true
@MinhajIqbal-tt5tp
@MinhajIqbal-tt5tp 4 жыл бұрын
True both
@AndreWatkis-q8h
@AndreWatkis-q8h Жыл бұрын
The value of the simple Express is true whilst the value of the hard expression is also true. Here's my code: fun main() { val simpleExpression = 3 > 4 || 4 > 3 && 4 (x + y) && (!bool || y < z) println(hardExpression)
@imanerbarta1
@imanerbarta1 4 жыл бұрын
Both are true
@dionnecf
@dionnecf 3 жыл бұрын
Homework: simpleExpression = true hardExpression = true :-)
@patilpatade
@patilpatade Ай бұрын
explanation inorder to solve these type of question. remember will look into precedence of operators. if, precedence of operators are same then will see Associativity. simpleExpression: 3>4 || 4>3 && 4 and and
@bhavikmehta4938
@bhavikmehta4938 3 жыл бұрын
Pro Tip: == is a compares the value, and === compares the memory address.
@GraceTechnologies-x8d
@GraceTechnologies-x8d 5 ай бұрын
fun main() { val simpleExpression = 3 > 4 || 4 > 3 && 4 (x + y) && (!bool || y < z) println(hardExpression) } output: true false
@DrFate_Channel
@DrFate_Channel Жыл бұрын
simpleExpression = True hardExpression = False
@MoonwalkerOfDreams
@MoonwalkerOfDreams Жыл бұрын
false and true, did it without doing it
@willianrodrigohuber7968
@willianrodrigohuber7968 Жыл бұрын
I don't know it are the better answer, but was what i know do !(x != z) && bool || z > (x + y) && (!bool || y < z) at first moment i change all ocurrences for each variable for our respective value !(9 != 9) && true || 9 > (9 + 3) && (!true || 3 < 9) evalueted all comparison into the parenteses !(false) && true || 9 > (12) && (false || true) true && true || false && true evaluated the two operation and true || false rest just evaluated or comparison true
Kotlin Newbie To Pro - IF CONDITIONS - Part 9
13:14
Philipp Lackner
Рет қаралды 20 М.
Kotlin Newbie To Pro - LISTS - Part 14
14:28
Philipp Lackner
Рет қаралды 23 М.
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН
Хаги Ваги говорит разными голосами
0:22
Фани Хани
Рет қаралды 2,2 МЛН
Air Sigma Girl #sigma
0:32
Jin and Hattie
Рет қаралды 45 МЛН
Kotlin Coroutine (High-quality Course)
2:07:37
Smartherd
Рет қаралды 109 М.
Everything you need to know about Kotlin 2.0 🟣
11:05
Stevdza-San
Рет қаралды 70 М.
Kotlin Newbie To Pro - NULL VALUES AND USER INPUT - Part 10
11:47
Philipp Lackner
Рет қаралды 26 М.
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 849 М.
All Rust features explained
21:30
Let's Get Rusty
Рет қаралды 335 М.
Kotlin Newbie to Pro - LAMBDA FUNCTIONS - Part 28
16:29
Philipp Lackner
Рет қаралды 35 М.
The Absolute Best Intro to Monads For Software Engineers
15:12
Studying With Alex
Рет қаралды 679 М.
Learn Kotlin in 12 Minutes
12:01
Rahul Pandey
Рет қаралды 349 М.
Kotlin Newbie to Pro - GENERICS - Part 29
19:41
Philipp Lackner
Рет қаралды 33 М.