August 25, 2025
count_lines
function# example source code content
sample_code = """def hello_world():
print("Hello, Proofgrammers!")
return True
def main():
result = hello_world()
print(f"Function executed: {result}")
if __name__ == "__main__":
main()"""
# count lines in the sample code
line_count = count_lines(sample_code)
print(f"Number of lines in the sample code: {line_count}")
print(f"This is a computable problem - we can always determine the line count!")
Number of lines in the sample code: 10
This is a computable problem - we can always determine the line count!
count_lines
functionuniversal
: demonstrates one program executing another programTips for effective theoretical machines setup
# Run these commands in your terminal window
git --version # Check Git installation
python --version # Check Python (via UV)
quarto --version # Check Quarto installation
code --version # Check VS Code installation
uv --version # Check UV package manager
# Install node.js and npm and npx from nodejs.org
# Then use npx to run tools without permanent installation
# You can also use npm to install them permanently
npx https://github.com/google-gemini/gemini-cli # google gemini cli
npx opencode-ai@latest # opencode ai assistant
quarto preview
? Output?Tips for effective theoretical machines setup
Devote time outside class to installing and configuring tools
Confirm that most tools work during the first lab session
Successfully get all tools to work during the first lab session
Create and render test documents with the provided examples
Complete the first proofgrammer presentation on time
Contribute to collaborative presentation projects
Prepare for first proofgrammer charette session
Proofgrammers