15 lines
378 B
Python
15 lines
378 B
Python
def display_variables():
|
|
# Declare and assign variables of different types
|
|
user_name = "Alice"
|
|
age = 25
|
|
is_student = True
|
|
score = 95.5
|
|
|
|
# Display variables using print
|
|
print("Name:", user_name)
|
|
print("Age:", age)
|
|
print("Is Student?", is_student)
|
|
print("Score:", score)
|
|
|
|
# Call the function to display the variables
|
|
display_variables() |