Equivalent code in rust/python/go
Course: Programs, Accounts and the Token Program - chapter 8
Solana has libraries similar to @solana/web3.js in Rust, Python that would let you do the same thing.
In the end, they all are sending requests to an RPC server.
