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!
@moyaalhayek32882 жыл бұрын
I really liked the harder version of the homework, thank you!
@userglls11 ай бұрын
so do i
@mformobileapps3 жыл бұрын
great tutorials😍...finally started Kotlin
@ekafrancium Жыл бұрын
The answer is True for both simple and hard expression.
@carolinegatwiri2309Ай бұрын
Both Expressions give True value
@seedgv3 жыл бұрын
Both True. Catching Up to your tutorials man.
@marktilton89432 жыл бұрын
Hard expression got me. But I assume it was true because False = False = False. Looking forward to the next lesson.
@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 Жыл бұрын
thank you for this amazing course
@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 Жыл бұрын
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 Жыл бұрын
9:47 Answer is true and 9:53 Answer is true.
@ironicdelta60974 жыл бұрын
great work dude!!!
@arnobhasan89302 жыл бұрын
great tutorial video Its easy to sort length video Vary helpful.
@salihdahi4 жыл бұрын
Thank you very much. Well explained m you saved much time
@PeramVinodreddy-yx7vp Жыл бұрын
U r seriously something
@suntvhits2 жыл бұрын
Both True, True
@h.venkateshdeveloper69974 жыл бұрын
simpleExpression = true hardExpression = true
@kseniyabuko Жыл бұрын
Cool homework 🙂
@linux2698 Жыл бұрын
thanks
@jaychavan3 жыл бұрын
Both are true !
@prasanjeetchakraborty84024 жыл бұрын
simpleexpression =true hardexpression = true
@MinhajIqbal-tt5tp4 жыл бұрын
True both
@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)
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
@bhavikmehta49383 жыл бұрын
Pro Tip: == is a compares the value, and === compares the memory address.
@GraceTechnologies-x8d5 ай бұрын
fun main() { val simpleExpression = 3 > 4 || 4 > 3 && 4 (x + y) && (!bool || y < z) println(hardExpression) } output: true false
@DrFate_Channel Жыл бұрын
simpleExpression = True hardExpression = False
@MoonwalkerOfDreams Жыл бұрын
false and true, did it without doing it
@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