I want to start learning programming, but I cannot afford a laptop right now. I can occasionally use my sister's laptop on weekends, though most of my practice would need to happen on my phone. Is it realistic to learn this way, and what tools or approach would make it workable?
5 Answers
If you use Android, Termux can provide a Linux-like terminal where you can install Python, compilers, and text editors. It is best suited to small scripts and coding exercises rather than large applications, but it can be a useful practice environment. Apps such as Mimo can also help you study during short sessions.
The biggest problem is ergonomics. Writing code for long periods on a small screen is tiring and slow, so a keyboard, phone stand, and possibly a monitor or television connected through an adapter would help. You could use your weekend laptop access for larger projects, debugging, and learning tools that are difficult to run on a phone.
Yes, you can learn the fundamentals on a phone, especially with a Bluetooth keyboard. Start with small exercises involving variables, conditions, loops, functions, and basic problem-solving. A phone becomes much less frustrating when you are not relying on the touchscreen keyboard.
When you eventually look for a computer, it does not need to be new or powerful. An older used laptop or Chromebook with a lightweight Linux setup can handle beginner programming well. Until then, focus on one language such as Python and build a steady habit with small exercises instead of trying to develop large projects from your phone.
Since you cannot afford a computer right now, do not let that stop you from beginning. Use your phone for lessons, reading documentation, and short programming challenges, then practice typing complete programs when you have access to the laptop. You can also check libraries, community education programs, or computer-lending schemes for temporary access.

Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically