23 lines
534 B
Python
23 lines
534 B
Python
def main():
|
|
# Declare and assign variables of different types
|
|
user_name = "Alice"
|
|
age = 25
|
|
is_student = True
|
|
score = 95.5
|
|
|
|
# Create a dictionary to hold the variables
|
|
response = {
|
|
"Name": user_name,
|
|
"Age": age,
|
|
"Is Student": is_student,
|
|
"Score": score
|
|
}
|
|
|
|
# Return the response
|
|
return response
|
|
|
|
if __name__ == "__main__":
|
|
result = main()
|
|
# Print the response for demonstration
|
|
for key, value in result.items():
|
|
print(f"{key}: {value}") |