Computer Science, asked by abhinav2791, 6 months ago

what are the two ways of displaying multiple value using a single PRINT command​

Answers

Answered by RandomStudent59
0

Answer:

3 ways

Explanation:

Using f stings, commas, +

Examples

value = "variable"

1) print (f"This is my {variable}")

2) print ("This is my", variable)

Note: using , leaves a space

3) print ("This is my " + variable")

If want to show two values

value1 = "23"

value2 = "54"

print (f"Value 1 = {value1}, Value 2 = {value2}")

Similar questions