Code
print('Hello, World!')
Byeong-Hak Choe
February 7, 2024
February 7, 2024
Python is a high-level, interpreted programming language. This is a simple Python code:
In Python, variables can store data of different types without explicitly declaring the type.
For example:
Python supports the usual logical conditions from mathematics:
These conditions can be used in several ways, most commonly in ‘if statements’ and loops.
A function is a block of code which only runs when it is called.
You can pass data, known as parameters, into a function.
A function can return data as a result.
A list is a collection which is ordered and changeable.
A dictionary is a collection which is unordered, changeable and indexed.