Hi there I am trying to create variables and then print each variable on a seperate line without printing each variable seperately like this:
string_name = "Pierre"
integer_age = 36
float_height_in_metres = 1.94
print string_name
print integer_age
print float_height_in_metres
I would like to only use the print command once. I tried this, but an error occurs when trying to run.
string_name = "Pierre"
integer_age = 36
float_height_in_metres = 1.94
print string_name + \ninteger_age + n\float_height_in_metres
Is it possible to only use the print command once?