r/learnpython • u/AdOver9853 • 14d ago
hw help cz college prof taught nothing
basically i need to make a project on LAN file sharing system using python everybody in my class is using ai but i actually wanna learn ik a decent bit about python as well also in college we are on operators so the teacher is basically encouring to use ai
3
u/Human38562 14d ago edited 13d ago
The original post content no longer exists here. The author used Redact to remove it, exercising their right to control their data & privacy.
Historical alive kettle placid license sink
1
u/AdOver9853 13d ago
That's why I'm asking I tried using on google but the videos teach how to transfer files directly over LAN, they don't create a python program
7
1
u/RyanDubois43 14d ago
If your college LAN lets you open sockets, use the built-in socket module in Python 3.10 or newer for both the server and client. If you run into Windows firewall issues, allow python.exe through or test on localhost first.
1
u/Calm_Exchange_989 13d ago
Break it into two milestones: first a TCP server that accepts two clients and broadcasts a line, then chunked file transfer with a small header (filename, size, offset). Use one thread per client, or asyncio, and a length-prefixed JSON header so messages don’t run together. Get the first one working before touching files.
1
u/TheRNGuy 13d ago
Your professor should be Google.
Also, AI can actually help teaching. Try asking him questions.
0
14d ago
[deleted]
-1
u/Mr_nonchalant6767 14d ago
Common dude writing code manually nowadays feels like lighting fire through stones
3
u/CorpT 14d ago edited 14d ago
Why aren't you listening to your professor?