S5. Hello World
S5. Hello World
Hardware Software
All the physical components that Set of steps that tell a computer what
make up a computer. to do, also known as programs
Examples: Operating System,
Examples: input devices like
Applications, Computational
keyboard and output devices like Languages
printer, CPU, memory and storage.
Hello World!
Computer Languages
Each language has its own grammar or SYNTAX, which must be followed for the computer to
understand this language. The programmer must learn to "speak" this language. Various
languages can be learned, and this is not difficult since the programming languages share
many concepts.
Hello World!
Python
Hello World!
Function print()
The print () function prints what is in the parentheses to the console.
If it is an integer or real number, simply enter it; if it is a text, you must put it in single or double
quotes
Python Output
print("Hello World!")
print(123)
print(1,2,3)
print("Hello","World")
print("Hello" "World")
print(200.45)
Hello World!
Function print()
By default the print() ends with a newline (“\n”) This can be changed to any character using the
parameter “end”. See the examples below:
Python Output
print("Hello World!",end = "*")
print("How are you?")
print("Hello World!")
print("How are you?")
Hello World!
Function input()