Introduction to programming: Hello World

Introduction to programming: Hello World

Intro: On January 6, 2025, I started CSE 110 which is my first programming course at BYU-Pathway Worldwide . I will major in software development and this is me documenting my journey leading up to my major. So sit back, relax and feel free to follow along.

Python is a high-level programming language. It is the programming language mostly used by institutions to introduce students to programming because it's relatively easy to understand due to the simple structure of its programs. The structure or format of a program is what some very fancy folks call syntax. While installing python, you might want to "add to path". This would enable you to run python programs from the command line of the computer.

Visual Studio Code: This is a very good option for writing and running programs.

Python extension for vscode: Developed by Microsoft, it's a software that helps you write code in vscode. For example, it makes your code look pretty and nice. This is called IntelliSense.

  • After installing python, vscode and the python extension, verify that python was set up correctly. To do this, we'll write a program instructing the computer to display a text on the screen. To write the program, open up vscode. When opening vscode for the first time, you'll see an option to "open folder". A folder is your workspace. It's where you'll store all of your files that contain your programs. After opening up a folder, create a file in that folder and make sure that the name of the file ends with ".py". For example filename.py and then, enter the code below inside the file. Save the file (ctrl-s for Windows or command-s for Mac users).

print("Hello World!")        

Next, hit the "play" button at the top right of vscode. When you hover over it, it says "run python file". If done correctly, the text: Hello World, is displayed on the screen.

  • If you're learning programming for the first time, starting out with Python is a very good option.

So, what was the first programming language that you learned? and what do you love about Python programming language?

You're on the right path, keep it up! And stay connected with us in our Alumni and Friends group: https://www.dhirubhai.net/groups/14289320/

Christiana Mba

Customer Support Specialist/Expert in Problem Solving/EdTechSales /Driving Retention,Growth and Project Success

1 个月

Way to Go!

回复

要查看或添加评论,请登录

Mba Victor Kalu的更多文章

  • Handling strings in python

    Handling strings in python

    What is a string? A string is basically a sequence of characters enclosed in quotation mark. It could be letters…

社区洞察

其他会员也浏览了