Python is a versatile and beginner-friendly programming language.
Python supports various data types:
- int: Integer values (e.g.,
42
) - float: Floating-point values (e.g.,
3.14
) - str: Strings (e.g.,
'Hello, World!'
) - bool: Boolean values (
True
orFalse
)
x = 10
if x > 5:
print("x is greater than 5")
else:
print("x is not greater than 5")
end