![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jun 2008
Location: Pennsylvania
Posts: 5
Rep Power: 0
![]() |
Hey everyone,
I was reading through a tutorial for Python on wikibooks and got hung up at a spot about short circuiting. I was wondering if you could help me through the logic the program is using to return the results. Here is the input/output: python Syntax (Toggle Plain Text)
The second and fourth ones are the ones I am having trouble understanding. From what I read on wikibooks, it has something to do with the first and second strings being non-empty strings, but I couldn't really see how writing the previous example is different from the following: python Syntax (Toggle Plain Text)
Am I just missing something here? |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Jun 2008
Location: Pennsylvania
Posts: 5
Rep Power: 0
![]() |
Re: Short circuiting...
Thanks titaniumdecoy, that article answered a lot of the areas where I was confused.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Short Hand Decimal To Binary Vice Versa Good or Bad? | CIRCLE | C | 2 | Sep 23rd, 2007 7:57 PM |
| Help debug (short program) | sixstringartist | C | 17 | Sep 11th, 2006 11:58 PM |
| Displaying a Short description | billpull | PHP | 7 | Jul 16th, 2006 10:34 AM |
| how short can you make this | angry_asian | C++ | 19 | Jun 29th, 2006 6:27 PM |
| Short Challenge | skuinders | Coder's Corner Lounge | 25 | Aug 16th, 2005 9:03 AM |