Skip to content

Instantly share code, notes, and snippets.

View Nirav-Madhani's full-sized avatar
🌃
Looking at the Sky

Nirav Madhani Nirav-Madhani

🌃
Looking at the Sky
View GitHub Profile
@BlueNexus
BlueNexus / python2pseudo.py
Last active December 8, 2025 14:51
Python to Pseudocode converter
import os.path
import re
'''
INSTRUCTIONS
1. Create a file with the following code
2. Put the file you want to convert into the same folder as it, and rename it to "py_file.py"
3. Add a "#F" comment to any lines in the code which have a function call that doesn't assign anything (so no =),
as the program cannot handle these convincingly
4. Run the converter file
@ahmu83
ahmu83 / US_States_and_Cities.json
Created July 20, 2016 16:50
List of US States and Cities in JSON format.
{
"New York": [
"New York",
"Buffalo",
"Rochester",
"Yonkers",
"Syracuse",
"Albany",
"New Rochelle",
"Mount Vernon",