Visit the website for easy access to all codes: 👉 https://sppucodes.vercel.app
A collection of programs and code snippets for SPPU (Savitribai Phule Pune University) students. This project helps students quickly find, view, and use lab assignment codes for multiple subjects — accessible both on the website and directly via the terminal using the API.
Want answers right inside your terminal? Just open your terminal and type the following command 👇
curl.exe https://sppucodes.vercel.app/api/{subject_code}/{question_no}
$ curl.exe https://sppucodes.vercel.app/api/cnl/16
import socket
choice = input("Enter '1' for Domain to IP or '2' for IP to Domain: ")
if choice == '1':
domain = input("Enter domain name: ")
ip = socket.gethostbyname(domain)
print("IP address of", domain, "is:", ip)
elif choice == '2':
ip = input("Enter IP address: ")
host = socket.gethostbyaddr(ip)
print("Domain name of", ip, "is:", host[0])
else:
print("Invalid choice.")
$💡 Tip: Works perfectly on Windows PowerShell, Ubuntu Terminal, or Mac Terminal.
Want to help others by adding your own codes? You can contribute easily by submitting your solutions online.
Visit: https://sppucodes.vercel.app/submit
Your contributions make this resource better for everyone! 🙌
Follow these steps to run the project on your local machine.
git clone https://github.com/AlbatrossC/sppu-codes.git
cd sppu-codesMake sure you have Python installed, then run:
python app.pyOnce the server starts, open your browser and go to:
http://localhost:3000
To get the latest answers and improvements locally, use:
git pull origin mainThis ensures your local repository stays up to date with the newest codes and fixes from the main branch.
If you find this helpful, consider giving the repo a star ⭐ on GitHub — it helps more students discover it!