Is Python Still Worth Learning? How to Choose Your First Programming Language

Choose a first programming language by the project you want to build. Compare Python, JavaScript, PHP, Kotlin and Swift, then try a small Python exercise.

Is Python Still Worth Learning? How to Choose Your First Programming Language

Python is a good first language if you want to automate a repetitive task, explore data or build a small tool. It has maintained releases and an ecosystem for web development, education and scientific computing. Check the supported versions before starting a course that specifies an older release. Python releases · What people use Python for

Start by deciding what you want your first program to do. If you want to filter a list on a web page or build an Android app, the platform helps you choose a language.

Choose a language for your first project

Starting points for six common projects
Goal Start with First task
Automate a repetitive task or explore data Python Read a sample file and summarise its contents.
Build an interactive web page HTML, CSS and JavaScript Add a working filter to a list on a page.
Maintain a PHP website PHP and the database tools the site uses Trace one page from input to query to output in a local copy.
Build a native Android app Kotlin and Android development tools Create a screen with a button and a visible result.
Build an iPhone or Mac app Swift and Apple's app development tools Create a simple SwiftUI screen after checking the equipment you need.
Join an existing project The language the project already uses Reproduce a small issue and propose a fix someone can review.

JavaScript adds behaviour to browser pages, and PHP is commonly used on web servers. Google recommends starting with Kotlin for Android development. You can learn Swift on several systems, while Apple's app development walkthrough requires macOS and Xcode. MDN JavaScript guide · PHP manual · Android Kotlin guidance · Swift getting started

Where TypeScript fits

TypeScript adds type checking to JavaScript and produces JavaScript code. If your first project runs in a browser, practise functions, arrays and events in a small working page. Then try adding a type to a function parameter and see which mistakes the checker catches. TypeScript for new programmers

Try a small Python exercise

This Python 3 program prints a numbered study checklist. Save it as practice.py and run it from your Python editor or interpreter. It uses Python's built-in features. Python interpreter guide

tasks = ["Read one example", "Change the example", "Explain the result"]
for number, task in enumerate(tasks, start=1):
    print(f"{number}. {task}")

You should see these three lines.

1. Read one example
2. Change the example
3. Explain the result

Add a fourth task to the list and run the script again. Check that it prints a fourth line. Change start=1 to start=0 and predict what the first number will be before you run it. If you get an error, read the message and identify the line involved.

Build a first project in four steps

  1. Set one outcome. Choose something small you can show another person, such as a calculator or study checklist.
  2. Learn the concepts you need. Start with values, conditions, loops and functions. Python's main tutorial assumes some programming knowledge. Start with a beginner resource if those ideas are new. Python for beginners
  3. Check one working version. Write down the input, the result you expect and what should happen if someone enters an invalid value. For a website, learn how to test and recover a change before deploying it. AlexJots guide to DevOps for small website teams
  4. Pick one next improvement. Add a database when your project needs to store information between runs. Add another language when the platform or team requires it.

Before paying for a course, check what you will build, who will give you feedback and whether the tools run on your device. A phone can be enough for reading and short exercises. Some courses require a desktop editor or a platform-specific development kit. AlexJots course-selection checklist

Choosing a language for work

Compare current vacancies for the role and location you want. Note the tasks and tools each employer asks for, then choose a project that demonstrates one of those tasks. A small project you can explain gives you something concrete to discuss in an interview.

Correction. An earlier version made unsupported predictions about programming languages and recommended Swift for TensorFlow as a current tool. The project was archived in February 2021. Swift for TensorFlow project archive

Share

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 0