I've been reading through this introductory book on Python, and I've been following along fairly well. Compared to C++, Python seems to make more sense to me. That is, until I reached a section on Logical Operators. I don't completely understand what I just typed in to IDLE, and the results that were returned. Here's what I read: Python provides three logical operators: and, or, and not. Both and and or use short-circuit logic and return the operand that determined the result—they do not return a Boolean (unless they actually have Boolean operands). Let’s see what this means in practice: …

Member Avatar
Member Avatar
+0 forum 5

As someone who is new to Javascript, I find it kind of odd that Javascript doesn't seem to have a != operator. Is there a rationale why the language was designed this way?

Member Avatar
Member Avatar
+0 forum 2

Hi, I'm running a script to bring down the logical ip address . But if the system doesnt have that logical ip addresss then i get the following error print on terminal - SIOCSIFFLAGS: Cannot assign requested address I just want to know whether there is a way to suppress that print so that user is not aware of that. May be some check before pulling down the logical ip. the script file content is - ifconfig eth0:1 down is there any syntax by which i can check whether eth0:1 is up or not . My purpose is not to …

Member Avatar
Member Avatar
+0 forum 1

The End.