So, I realised that in my native language, Hindi, Do you have a pen Will literally be translated to What you have pen? And I asked an Indonesian friend of mine, and he said Do you have a pen Will be literally translated to Pen, yes or no? And I believe in Tamil, Do you have a pen Will be translated to Pen? So, how do you ask yes/no questions in your language?
Yes, the ternary operator which is mostly the same in many programming languages (with exceptions of some of the verbose languages that would use an if else syntax(Python/VB))
In Spanish. tu tienes una pluma? Si o no (yes or no) some other Spanish speaking countries have other words for pen Lapis = pencil. lapicero = pen or la lapicera
No, that isn't regex, and not sure why you think regex is the bane, it is awesome. Aka, it is a common command in most programming languages, not limited to a single one. And Python is a programming language, not the snake. It uses a different syntax like: "Yes" if pen else "No" PS If you like pythons so much, how about sleeping in a bed of pythons?
I see. I imagine a bed of pythons to be quite hard and suffocating . They are danger noodle. Cute but deadly
No, that's not translated literally, Translated literally it's perhaps closer to "Whether you have a pen?"; it's too formal, though. In casual settings we say it closer to what you wrote