Show code
# Numeric types
integer_num = 5
float_num = 3.14
complex_num = 3 + 2j
# Strings and String Manipulation
str_variable = "Hello, Python!"
substring = str_variable[0:5] # Extracts "Hello"
concatenated_str = str_variable + " Welcome!" # Concatenation
print(f"str_variable : {str_variable}")
print(f"substring : {substring}")
print(f"concatenated_str : {concatenated_str}")str_variable : Hello, Python!
substring : Hello
concatenated_str : Hello, Python! Welcome!