Sorry about how amateur this is, but what does the '!' do in python? I see it all the time and wonder.
Simple question
Page 1 of 13 Replies - 306 Views - Last Post: 02 August 2012 - 02:32 PM
Replies To: Simple question
#2
Re: Simple question
Posted 02 August 2012 - 02:02 PM
All the time? Where do you see it? I can only think of one place where it occurs often:
meaning a not equal to b.
a != b
meaning a not equal to b.
#3
Re: Simple question
Posted 02 August 2012 - 02:09 PM
Just looking through the snippets and posts I'll see it.
#4
Re: Simple question
Posted 02 August 2012 - 02:32 PM
You might also see it in the sh-bang:
#!/usr/bin/python
There, it tells the shell to interpret this with python (and not with your default shell).
#!/usr/bin/python
There, it tells the shell to interpret this with python (and not with your default shell).
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|