Code is just a series of instructions for a computer to follow one after another. Programs can have a lot of instructions.
We use the "console" to shows you the text output of your program.
To see what's happening in our code, we need to print it to the console using the print() function
print("Hello World")we can also print numbers
print(2026)Addition is one of the most common instructions in programming. This also prints the number 2026:
print(2000+26)Code runs in order, starting at the top of the program. For example:
print("this prints first")
print("this prints second")
print("this prints last")"Syntax" is jargon for "valid code that the computer can understand". For example, the following code has invalid syntax:
print("Hello World')It has mismatched quotes around the string hello world. One is a single quote ' and the other is a double quote ".
Source: boot.dev