This tool is donation based and free. 🙏 We're looking for donations to keep it running — $360/year covers our server costs.

$18 of $360 · 5%
Donate
This fact check is over 3 months old. The situation may have changed significantly — please recheck before relying on it.

Code Executes Unrestricted: Fact Check on Conditional Statement

“Is this unrestricted this is just an example if True: do_project_A() do_project_B()”
Unrestricted execution
Confidence: High Checked on May 14, 2026

Summary

The snippet `if True: do_project_A(); do_project_B()` is standard Python code and runs in the normal, unrestricted execution mode. Restricted execution only occurs when the `__builtins__` object is altered, which is not the case here. Therefore, the code is not subject to any restricted‑execution constraints.

Recheck this fact Runs a fresh check with up-to-date sources

Sources 58 searched

scipp.ucsc.edu
  • 16. Restricted Execution

    The Python run-time determines whether a particular code block is executing in restricted execution mode based on the identity of the __builtins__ object in its global variables: if this is (the dictionary of) the standard __builtin__ module, the code is deemed to be unrestricted, else it is ...

vega.lpl.arizona.edu
  • 12. Restricted Execution

    The Python run-time determines whether a particular code block is executing in restricted execution mode based on the identity of the __builtins__ object in its global variables: if this is (the dictionary of) the standard __builtin__ module, the code is deemed to be unrestricted, else it is ...

floppsie.comp.glam.ac.uk
  • 28. Restricted Execution

    The Python run-time determines whether a particular code block is executing in restricted execution mode based on the identity of the __builtins__ object in its global variables: if this is (the dictionary of) the standard __builtin__ module, the code is deemed to be unrestricted, else it is ...

docs.python.org
  • 8. Compound statements — Python 3.14.5 documentation

    If the pattern failed, the guard is not evaluated and the next case block is checked. If the pattern succeeded, evaluate the guard. If the guard condition evaluates as true, the case block is selected.

  • 4. More Control Flow Tools — Python 3.14.5 documentation

    In this example it is equivalent to result = result + [a], but more efficient. It is also possible to define functions with a variable number of arguments. There are three forms, which can be combined. The most useful form is to specify a default value for one or more arguments. This creates a function that can be called with fewer arguments than it is defined to allow. For example: def ask_ok(prompt, retries=4, reminder='Please try again!'): while True: reply = input(prompt) if reply in {'y', 'ye', 'yes'}: return True if reply in {'n', 'no', 'nop', 'nope'}: return False retries = retries - 1 if retries < 0: raise ValueError('invalid user response') print(reminder)

  • Python 3.14 documentation

    Download these documents · Welcome! This is the official documentation for Python 3.14.5

geeksforgeeks.org
  • Conditional Statements in Python - GeeksforGeeks

    This is a compact way to write an if statement. It executes print statement if the condition is true. If Else allows us to specify a block of code that will execute if the condition(s) associated with an if or elif statement evaluates to False.

softwareengineering.stackexchange.com
calebshortt.com

This fact check is free and donation-based. $1 powers ~30 fact-checks.

Donate $1 to support fact-checking

Check another fact