Oh my god! Thank you so much for this video! I subscribed to your channel immediately,haha! Unfortunately, there aren't any German channels which talk about languages in general that's why I'm so glad that I found this channel! So, yeah. English isn't my first language (I wish it would be because I really love this language,haha) but I could understand your video perfectly! Thank you so much!
The syntax isn't violated in neither of the cases you mention. Both are syntactically fine. And both would cause a semantic error. In the case of mars = earth + 1, it would be because it doesn't have a value for earth. If earth would've been defined previously than it would have depended on the value of earth. And in the second case "mars' + 2, there's nothing wrong with the syntax again, the semantics is where the problem is, as the quiz states. You can't add apples to oranges in the same manner that you can't add strings and integers in Python.
I loved the more aggressive z pronouncing for furiously sleeping
OK. Rammus
Oh my god! Thank you so much for this video!
I subscribed to your channel immediately,haha! Unfortunately, there aren't any German channels which talk about languages in general that's why I'm so glad that I found this channel!
So, yeah. English isn't my first language (I wish it would be because I really love this language,haha) but I could understand your video perfectly! Thank you so much!
z! z! 🤣🤣🤣that was very educational
this isnt a linguistics video!!
Python -> " TypeError: number coercion failed "
HTML -> "Segmentation Fault"
is mars = earth + 1 the one which will result in error since the syntax is being violated?
Nevermind it would be "mars" + 2 since the syntax is violated because it won't recognize the string (mars) being added with the integer (2)
The syntax isn't violated in neither of the cases you mention. Both are syntactically fine. And both would cause a semantic error. In the case of mars = earth + 1, it would be because it doesn't have a value for earth. If earth would've been defined previously than it would have depended on the value of earth. And in the second case "mars' + 2, there's nothing wrong with the syntax again, the semantics is where the problem is, as the quiz states. You can't add apples to oranges in the same manner that you can't add strings and integers in Python.
semantic not *symantic!
A wonderful explanation of a fascinating topic. Thanks!
really?