About 51 results
Open links in new tab
  1. Return True, False and None in Python - Stack Overflow

    Mar 24, 2013 · Return True, False and None in Python [closed] Asked 12 years, 11 months ago Modified 12 years, 11 months ago Viewed 171k times

  2. What does return True/False actually do? (Python) [closed]

    Feb 14, 2015 · I always see programs with if statements that return True or False, but what is actually happening here, why wouldn't you just want to put a print statement for false/true.

  3. Python Function return True/False - Stack Overflow

    Mar 6, 2018 · Python Function return True/False Asked 7 years, 11 months ago Modified 3 years ago Viewed 27k times

  4. Beginner question: returning a boolean value from a function in Python

    Nov 12, 2010 · 14 I'm trying to get this rock paper scissors game to either return a Boolean value, as in set player_wins to True or False, depending on if the player wins, or to refactor this code entirely so …

  5. How to check if python function return true or false

    Aug 10, 2019 · How to check if python function return true or false Asked 6 years, 6 months ago Modified 5 years, 10 months ago Viewed 8k times

  6. python's re: return True if string contains regex pattern

    I have a regular expression like this: regexp = u'ba[r|z|d]' Function must return True if word contains bar, baz or bad. In short, I need regexp analog for Python's 'any-string' in 'text' How can I

  7. Use of True, False, and None as return values in Python functions

    Feb 29, 2012 · It has a return value of either True or False, depending on whether its arguments are equal or not. And if condition will proceed if condition is true. So when you write if x == True Python …

  8. Python regular expressions return true/false - Stack Overflow

    Jul 4, 2011 · Python regular expressions return true/false Asked 14 years, 7 months ago Modified 5 years, 10 months ago Viewed 268k times

  9. Python: Finding a substring in a string, but returning True or False ...

    Dec 8, 2017 · I need to check if a substring is part of a specific string. The substring is 'AAA' and if it is found in the given string, it must return True. If it isn't in the string, it must return False def

  10. Python- Return true if all statements are true - Stack Overflow

    Nov 24, 2022 · 0 I have a method and I want it to return true if all 3 statements are true. In case any of them is false the method should return false.